diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-07-03 13:39:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-03 13:39:54 +0200 |
commit | 71e1cbc8eb5928d393b0772055d6b711e90a09b3 (patch) | |
tree | 71795eadcf13fda9198b8cd9a3da26d51826bbd9 /tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | |
parent | 822c877949aff8ae57677671115f8f4fc69588d5 (diff) | |
parent | 38520658addc217f127b0627ea28dcf8d6e6178c (diff) | |
download | wallabag-71e1cbc8eb5928d393b0772055d6b711e90a09b3.tar.gz wallabag-71e1cbc8eb5928d393b0772055d6b711e90a09b3.tar.zst wallabag-71e1cbc8eb5928d393b0772055d6b711e90a09b3.zip |
Merge pull request #3258 from wallabag/cs-fixer
Add a real configuration for CS-Fixer
Diffstat (limited to 'tests/Wallabag/CoreBundle/WallabagCoreTestCase.php')
-rw-r--r-- | tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php index eec6939d..1eda5199 100644 --- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php +++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | |||
@@ -18,11 +18,6 @@ abstract class WallabagCoreTestCase extends WebTestCase | |||
18 | */ | 18 | */ |
19 | private $client = null; | 19 | private $client = null; |
20 | 20 | ||
21 | public function getClient() | ||
22 | { | ||
23 | return $this->client; | ||
24 | } | ||
25 | |||
26 | public function setUp() | 21 | public function setUp() |
27 | { | 22 | { |
28 | parent::setUp(); | 23 | parent::setUp(); |
@@ -30,6 +25,11 @@ abstract class WallabagCoreTestCase extends WebTestCase | |||
30 | $this->client = static::createClient(); | 25 | $this->client = static::createClient(); |
31 | } | 26 | } |
32 | 27 | ||
28 | public function getClient() | ||
29 | { | ||
30 | return $this->client; | ||
31 | } | ||
32 | |||
33 | public function resetDatabase(Client $client) | 33 | public function resetDatabase(Client $client) |
34 | { | 34 | { |
35 | $application = new Application($client->getKernel()); | 35 | $application = new Application($client->getKernel()); |
@@ -83,10 +83,10 @@ abstract class WallabagCoreTestCase extends WebTestCase | |||
83 | $loginManager = $container->get('fos_user.security.login_manager'); | 83 | $loginManager = $container->get('fos_user.security.login_manager'); |
84 | $firewallName = $container->getParameter('fos_user.firewall_name'); | 84 | $firewallName = $container->getParameter('fos_user.firewall_name'); |
85 | 85 | ||
86 | $user = $userManager->findUserBy(array('username' => $username)); | 86 | $user = $userManager->findUserBy(['username' => $username]); |
87 | $loginManager->logInUser($firewallName, $user); | 87 | $loginManager->logInUser($firewallName, $user); |
88 | 88 | ||
89 | $session->set('_security_'.$firewallName, serialize($container->get('security.token_storage')->getToken())); | 89 | $session->set('_security_' . $firewallName, serialize($container->get('security.token_storage')->getToken())); |
90 | $session->save(); | 90 | $session->save(); |
91 | 91 | ||
92 | $cookie = new Cookie($session->getName(), $session->getId()); | 92 | $cookie = new Cookie($session->getName(), $session->getId()); |