Fix PHPUnit deprecated warning

This commit is contained in:
Simounet 2021-04-14 13:07:46 +02:00
parent e491052b0d
commit 6324d30db2
No known key found for this signature in database
GPG key ID: 77D3B7DC794EB770

View file

@ -207,8 +207,8 @@ class EntryControllerTest extends WallabagCoreTestCase
$authors = $content->getPublishedBy();
$this->assertSame('2017-04-05', $content->getPublishedAt()->format('Y-m-d'));
$this->assertSame('fr', $content->getLanguage());
$this->assertContains('Balenieri', $authors[0]);
$this->assertContains('Autran', $authors[1]);
$this->assertStringContainsString('Balenieri', $authors[0]);
$this->assertStringContainsString('Autran', $authors[1]);
}
public function testPostNewOkUrlExist()