From 6324d30db24407f06c1a75ece5e6ce9067fc683f Mon Sep 17 00:00:00 2001 From: Simounet Date: Wed, 14 Apr 2021 13:07:46 +0200 Subject: [PATCH] Fix PHPUnit deprecated warning --- tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 2e3048cf9..627bf87b7 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -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()