diff --git a/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php b/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php index dd6b768a1..c7148f6d1 100644 --- a/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php +++ b/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php @@ -5,7 +5,7 @@ namespace Tests\Wallabag\AnnotationBundle; use FOS\UserBundle\Model\UserInterface; use FOS\UserBundle\Model\UserManager; use FOS\UserBundle\Security\LoginManager; -use Symfony\Bundle\FrameworkBundle\Client; +use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\HttpFoundation\Session\SessionInterface; @@ -14,7 +14,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt abstract class WallabagAnnotationTestCase extends WebTestCase { /** - * @var Client + * @var KernelBrowser */ protected $client = null; @@ -42,7 +42,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase } /** - * @return Client + * @return KernelBrowser */ protected function createAuthorizedClient() { diff --git a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php index 92594e41f..660fe1495 100644 --- a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php +++ b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php @@ -6,7 +6,7 @@ use Doctrine\ORM\EntityManagerInterface; use FOS\UserBundle\Model\UserInterface; use FOS\UserBundle\Model\UserManager; use FOS\UserBundle\Security\LoginManager; -use Symfony\Bundle\FrameworkBundle\Client; +use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\HttpFoundation\Session\SessionInterface; @@ -16,7 +16,7 @@ use Wallabag\UserBundle\Entity\User; abstract class WallabagApiTestCase extends WebTestCase { /** - * @var Client + * @var KernelBrowser */ protected $client = null; @@ -32,7 +32,7 @@ abstract class WallabagApiTestCase extends WebTestCase } /** - * @return Client + * @return KernelBrowser */ protected function createAuthorizedClient() { diff --git a/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php b/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php index d9ecac5e6..b0688a65c 100644 --- a/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php @@ -4,7 +4,7 @@ namespace Tests\Wallabag\CoreBundle\Controller; use Craue\ConfigBundle\Util\Config; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Bundle\FrameworkBundle\Client; +use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Tests\Wallabag\CoreBundle\WallabagCoreTestCase; use Wallabag\CoreBundle\Entity\SiteCredential; @@ -139,7 +139,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase $this->assertStringContainsString('flashes.site_credential.notice.deleted', $crawler->filter('body')->extract(['_text'])[0]); } - private function createSiteCredential(Client $client) + private function createSiteCredential(KernelBrowser $client) { $credential = new SiteCredential($this->getLoggedInUser()); $credential->setHost('google.io'); diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php index 79221ad1b..b6eb330e9 100644 --- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php +++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php @@ -3,8 +3,8 @@ namespace Tests\Wallabag\CoreBundle; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Bundle\FrameworkBundle\Client; use Symfony\Bundle\FrameworkBundle\Console\Application; +use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\Console\Input\ArrayInput; @@ -16,7 +16,7 @@ use Wallabag\UserBundle\Entity\User; abstract class WallabagCoreTestCase extends WebTestCase { /** - * @var Client|null + * @var KernelBrowser|null */ private $client = null; @@ -37,7 +37,7 @@ abstract class WallabagCoreTestCase extends WebTestCase return $this->client; } - public function resetDatabase(Client $client) + public function resetDatabase(KernelBrowser $client) { $application = new Application($client->getKernel()); $application->setAutoExit(false);