From 641e2eedf5387d08852f50b1c019ce795c013209 Mon Sep 17 00:00:00 2001 From: Dag Date: Sun, 8 May 2022 03:55:24 +0200 Subject: [PATCH] test: exclude Pixiv for a particular test --- tests/BridgeImplementationTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/BridgeImplementationTest.php b/tests/BridgeImplementationTest.php index e45de77f..f95ef5ee 100644 --- a/tests/BridgeImplementationTest.php +++ b/tests/BridgeImplementationTest.php @@ -67,7 +67,11 @@ class BridgeImplementationTest extends TestCase { foreach($this->obj::PARAMETERS as $context => $params) { if ($multiContexts) { $this->assertIsString($context, 'invalid context name'); - $this->assertNotEmpty($context, 'empty 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'); + } } if (empty($params)) {