Replace deprecated usages

This commit is contained in:
Philipp 2021-12-10 21:40:07 +01:00
parent 31ca758d4e
commit 7d967f64a7
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
3 changed files with 5 additions and 3 deletions

View File

@ -39,8 +39,8 @@ class UpdateTest extends ApiTest
$json = $this->toJson($response); $json = $this->toJson($response);
self::assertStatus($json); self::assertStatus($json);
self::assertContains('Status content #friendica', $json->text); self::assertStringContainsString('Status content #friendica', $json->text);
self::assertContains('Status content #', $json->statusnet_html); self::assertStringContainsString('Status content #', $json->statusnet_html);
} }
/** /**

View File

@ -6,7 +6,7 @@ use Friendica\Test\src\Module\Api\ApiTest;
class BaseApiTest extends ApiTest class BaseApiTest extends ApiTest
{ {
public function withWrongAuth() public function testWithWrongAuth()
{ {
self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first'); self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');

View File

@ -2,6 +2,7 @@
namespace Friendica\Test\src\Util; namespace Friendica\Test\src\Util;
use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
use Friendica\Test\DiceHttpMockHandlerTrait; use Friendica\Test\DiceHttpMockHandlerTrait;
use Friendica\Test\MockedTest; use Friendica\Test\MockedTest;
use Friendica\Util\Images; use Friendica\Util\Images;
@ -11,6 +12,7 @@ use GuzzleHttp\Psr7\Response;
class ImagesTest extends MockedTest class ImagesTest extends MockedTest
{ {
use DiceHttpMockHandlerTrait; use DiceHttpMockHandlerTrait;
use ArraySubsetAsserts;
protected function setUp(): void protected function setUp(): void
{ {