diff --git a/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php b/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php index efa6f18066..1d181dd523 100644 --- a/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php @@ -39,8 +39,8 @@ class UpdateTest extends ApiTest $json = $this->toJson($response); self::assertStatus($json); - self::assertContains('Status content #friendica', $json->text); - self::assertContains('Status content #', $json->statusnet_html); + self::assertStringContainsString('Status content #friendica', $json->text); + self::assertStringContainsString('Status content #', $json->statusnet_html); } /** diff --git a/tests/src/Module/BaseApiTest.php b/tests/src/Module/BaseApiTest.php index c985ade2a7..6e9fbaf1a7 100644 --- a/tests/src/Module/BaseApiTest.php +++ b/tests/src/Module/BaseApiTest.php @@ -6,7 +6,7 @@ use Friendica\Test\src\Module\Api\ApiTest; class BaseApiTest extends ApiTest { - public function withWrongAuth() + public function testWithWrongAuth() { self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first'); diff --git a/tests/src/Util/ImagesTest.php b/tests/src/Util/ImagesTest.php index ddadf9547f..4bbdba87b5 100644 --- a/tests/src/Util/ImagesTest.php +++ b/tests/src/Util/ImagesTest.php @@ -2,6 +2,7 @@ namespace Friendica\Test\src\Util; +use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts; use Friendica\Test\DiceHttpMockHandlerTrait; use Friendica\Test\MockedTest; use Friendica\Util\Images; @@ -11,6 +12,7 @@ use GuzzleHttp\Psr7\Response; class ImagesTest extends MockedTest { use DiceHttpMockHandlerTrait; + use ArraySubsetAsserts; protected function setUp(): void {