[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:
Yaman Qalieh 2022-06-24 05:31:24 -04:00 committed by GitHub
parent 92782e6c34
commit 1e7ad6ed51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 16 deletions

View file

@ -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)) {