mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 08:35:17 +02:00
[PixivBridge] Remove backwards compatability hack (#2846)
There is no need for this since the context is guessed if it's not provided.
This commit is contained in:
parent
92782e6c34
commit
1e7ad6ed51
2 changed files with 7 additions and 16 deletions
|
@ -5,7 +5,6 @@ namespace RssBridge\Tests\Bridges;
|
|||
use BridgeAbstract;
|
||||
use BridgeInterface;
|
||||
use FeedExpander;
|
||||
use PixivBridge;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class BridgeImplementationTest extends TestCase {
|
||||
|
@ -74,10 +73,7 @@ class BridgeImplementationTest extends TestCase {
|
|||
if ($multiContexts) {
|
||||
$this->assertIsString($context, 'invalid context name');
|
||||
|
||||
// Pixiv has a context that is the empty string, for BC.
|
||||
if (! ($this->obj instanceof PixivBridge)) {
|
||||
$this->assertNotEmpty($context, 'The context name cannot be empty');
|
||||
}
|
||||
$this->assertNotEmpty($context, 'The context name cannot be empty');
|
||||
}
|
||||
|
||||
if (empty($params)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue