Replace deprecated usages

This commit is contained in:
Philipp Holzer 2021-12-10 21:40:07 +01:00
parent 31ca758d4e
commit 7d967f64a7
Signed by: nupplaPhil
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);
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);
}
/**

View file

@ -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');

View file

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