mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 09:04:44 +02:00
fix(reddit): url encoding (#4010)
This commit is contained in:
parent
5b80af978f
commit
4bad1c140a
3 changed files with 62 additions and 49 deletions
|
@ -157,29 +157,6 @@ class BridgeImplementationTest extends TestCase
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataBridgesProvider
|
||||
*/
|
||||
public function testVisibleMethods($path)
|
||||
{
|
||||
$bridgeAbstractMethods = get_class_methods(BridgeAbstract::class);
|
||||
sort($bridgeAbstractMethods);
|
||||
$feedExpanderMethods = get_class_methods(FeedExpander::class);
|
||||
sort($feedExpanderMethods);
|
||||
|
||||
$this->setBridge($path);
|
||||
|
||||
$publicMethods = get_class_methods($this->bridge);
|
||||
sort($publicMethods);
|
||||
foreach ($publicMethods as $publicMethod) {
|
||||
if ($this->bridge instanceof FeedExpander) {
|
||||
$this->assertContains($publicMethod, $feedExpanderMethods);
|
||||
} else {
|
||||
$this->assertContains($publicMethod, $bridgeAbstractMethods);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataBridgesProvider
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue