@@ -4,9 +4,11 @@ discard block |
||
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
6 | 6 | |
7 | -class GroupControllerTest extends WebTestCase { |
|
7 | +class GroupControllerTest extends WebTestCase |
|
8 | +{ |
|
8 | 9 | |
9 | - public function testCreate() { |
|
10 | + public function testCreate() |
|
11 | + { |
|
10 | 12 | $client = static::createClient(); |
11 | 13 | $crawler = $client->request('GET', '/admin/groups/'); |
12 | 14 | $this->assertCount(0, $crawler->filter('table.records_list tbody tr')); |
@@ -19,7 +21,8 @@ discard block |
||
19 | 21 | $this->assertCount(1, $crawler->filter('table.records_list tbody tr')); |
20 | 22 | } |
21 | 23 | |
22 | - public function testCreateError() { |
|
24 | + public function testCreateError() |
|
25 | + { |
|
23 | 26 | $client = static::createClient(); |
24 | 27 | $crawler = $client->request('GET', '/admin/groups/new'); |
25 | 28 | $form = $crawler->filter('form button[type="submit"]')->form(); |
@@ -31,7 +34,8 @@ discard block |
||
31 | 34 | /** |
32 | 35 | * @depends testCreate |
33 | 36 | */ |
34 | - public function testEdit() { |
|
37 | + public function testEdit() |
|
38 | + { |
|
35 | 39 | $client = static::createClient(); |
36 | 40 | $crawler = $client->request('GET', '/admin/groups/'); |
37 | 41 | $this->assertCount(1, $crawler->filter('table.records_list tbody tr:contains("First value")')); |
@@ -50,7 +54,8 @@ discard block |
||
50 | 54 | /** |
51 | 55 | * @depends testCreate |
52 | 56 | */ |
53 | - public function testEditError() { |
|
57 | + public function testEditError() |
|
58 | + { |
|
54 | 59 | $client = static::createClient(); |
55 | 60 | $crawler = $client->request('GET', '/admin/groups/'); |
56 | 61 | $crawler = $client->click($crawler->filter('table.records_list tbody tr td .btn-group a')->eq(1)->link()); |
@@ -65,7 +70,8 @@ discard block |
||
65 | 70 | /** |
66 | 71 | * @depends testCreate |
67 | 72 | */ |
68 | - public function testDelete() { |
|
73 | + public function testDelete() |
|
74 | + { |
|
69 | 75 | $client = static::createClient(); |
70 | 76 | $crawler = $client->request('GET', '/admin/groups/'); |
71 | 77 | $this->assertTrue($client->getResponse()->isSuccessful()); |
@@ -5,7 +5,8 @@ discard block |
||
5 | 5 | /** |
6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:22. |
7 | 7 | */ |
8 | -class InstallControllerTest extends \PHPUnit_Framework_TestCase { |
|
8 | +class InstallControllerTest extends \PHPUnit_Framework_TestCase |
|
9 | +{ |
|
9 | 10 | |
10 | 11 | /** |
11 | 12 | * @var InstallController |
@@ -16,7 +17,8 @@ discard block |
||
16 | 17 | * Sets up the fixture, for example, opens a network connection. |
17 | 18 | * This method is called before a test is executed. |
18 | 19 | */ |
19 | - protected function setUp() { |
|
20 | + protected function setUp() |
|
21 | + { |
|
20 | 22 | $this->object = new InstallController; |
21 | 23 | } |
22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
24 | 26 | * Tears down the fixture, for example, closes a network connection. |
25 | 27 | * This method is called after a test is executed. |
26 | 28 | */ |
27 | - protected function tearDown() { |
|
29 | + protected function tearDown() |
|
30 | + { |
|
28 | 31 | |
29 | 32 | } |
30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
32 | 35 | * @covers AppBundle\Controller\install\InstallController::indexAction |
33 | 36 | * @todo Implement testIndexAction(). |
34 | 37 | */ |
35 | - public function testIndexAction() { |
|
38 | + public function testIndexAction() |
|
39 | + { |
|
36 | 40 | // Remove the following lines when you implement this test. |
37 | 41 | $this->markTestIncomplete( |
38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
43 | 47 | * @covers AppBundle\Controller\install\InstallController::step1Action |
44 | 48 | * @todo Implement testStep1Action(). |
45 | 49 | */ |
46 | - public function testStep1Action() { |
|
50 | + public function testStep1Action() |
|
51 | + { |
|
47 | 52 | // Remove the following lines when you implement this test. |
48 | 53 | $this->markTestIncomplete( |
49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
54 | 59 | * @covers AppBundle\Controller\install\InstallController::step2Action |
55 | 60 | * @todo Implement testStep2Action(). |
56 | 61 | */ |
57 | - public function testStep2Action() { |
|
62 | + public function testStep2Action() |
|
63 | + { |
|
58 | 64 | // Remove the following lines when you implement this test. |
59 | 65 | $this->markTestIncomplete( |
60 | 66 | 'This test has not been implemented yet.' |
@@ -4,9 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
6 | 6 | |
7 | -class DefaultControllerTest extends WebTestCase { |
|
7 | +class DefaultControllerTest extends WebTestCase |
|
8 | +{ |
|
8 | 9 | |
9 | - public function testIndex() { |
|
10 | + public function testIndex() |
|
11 | + { |
|
10 | 12 | $client = static::createClient(); |
11 | 13 | |
12 | 14 | $crawler = $client->request('GET', '/'); |
@@ -5,7 +5,8 @@ discard block |
||
5 | 5 | /** |
6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:19. |
7 | 7 | */ |
8 | -class MenuBuilderTest extends \PHPUnit_Framework_TestCase { |
|
8 | +class MenuBuilderTest extends \PHPUnit_Framework_TestCase |
|
9 | +{ |
|
9 | 10 | |
10 | 11 | /** |
11 | 12 | * @var MenuBuilder |
@@ -16,7 +17,8 @@ discard block |
||
16 | 17 | * Sets up the fixture, for example, opens a network connection. |
17 | 18 | * This method is called before a test is executed. |
18 | 19 | */ |
19 | - protected function setUp() { |
|
20 | + protected function setUp() |
|
21 | + { |
|
20 | 22 | $this->object = new MenuBuilder; |
21 | 23 | } |
22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
24 | 26 | * Tears down the fixture, for example, closes a network connection. |
25 | 27 | * This method is called after a test is executed. |
26 | 28 | */ |
27 | - protected function tearDown() { |
|
29 | + protected function tearDown() |
|
30 | + { |
|
28 | 31 | |
29 | 32 | } |
30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
32 | 35 | * @covers AppBundle\Menu\MenuBuilder::buildMainMenu |
33 | 36 | * @todo Implement testBuildMainMenu(). |
34 | 37 | */ |
35 | - public function testBuildMainMenu() { |
|
38 | + public function testBuildMainMenu() |
|
39 | + { |
|
36 | 40 | // Remove the following lines when you implement this test. |
37 | 41 | $this->markTestIncomplete( |
38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
43 | 47 | * @covers AppBundle\Menu\MenuBuilder::buildUserMenu |
44 | 48 | * @todo Implement testBuildUserMenu(). |
45 | 49 | */ |
46 | - public function testBuildUserMenu() { |
|
50 | + public function testBuildUserMenu() |
|
51 | + { |
|
47 | 52 | // Remove the following lines when you implement this test. |
48 | 53 | $this->markTestIncomplete( |
49 | 54 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
5 | 5 | /** |
6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:19. |
7 | 7 | */ |
8 | -class RequestVoterTest extends \PHPUnit_Framework_TestCase { |
|
8 | +class RequestVoterTest extends \PHPUnit_Framework_TestCase |
|
9 | +{ |
|
9 | 10 | |
10 | 11 | /** |
11 | 12 | * @var RequestVoter |
@@ -16,7 +17,8 @@ discard block |
||
16 | 17 | * Sets up the fixture, for example, opens a network connection. |
17 | 18 | * This method is called before a test is executed. |
18 | 19 | */ |
19 | - protected function setUp() { |
|
20 | + protected function setUp() |
|
21 | + { |
|
20 | 22 | $this->object = new RequestVoter; |
21 | 23 | } |
22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
24 | 26 | * Tears down the fixture, for example, closes a network connection. |
25 | 27 | * This method is called after a test is executed. |
26 | 28 | */ |
27 | - protected function tearDown() { |
|
29 | + protected function tearDown() |
|
30 | + { |
|
28 | 31 | |
29 | 32 | } |
30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
32 | 35 | * @covers AppBundle\Menu\RequestVoter::matchItem |
33 | 36 | * @todo Implement testMatchItem(). |
34 | 37 | */ |
35 | - public function testMatchItem() { |
|
38 | + public function testMatchItem() |
|
39 | + { |
|
36 | 40 | // Remove the following lines when you implement this test. |
37 | 41 | $this->markTestIncomplete( |
38 | 42 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
5 | 5 | /** |
6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:24. |
7 | 7 | */ |
8 | -class LoginListenerTest extends \PHPUnit_Framework_TestCase { |
|
8 | +class LoginListenerTest extends \PHPUnit_Framework_TestCase |
|
9 | +{ |
|
9 | 10 | |
10 | 11 | /** |
11 | 12 | * @var LoginListener |
@@ -16,7 +17,8 @@ discard block |
||
16 | 17 | * Sets up the fixture, for example, opens a network connection. |
17 | 18 | * This method is called before a test is executed. |
18 | 19 | */ |
19 | - protected function setUp() { |
|
20 | + protected function setUp() |
|
21 | + { |
|
20 | 22 | $this->object = new LoginListener; |
21 | 23 | } |
22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
24 | 26 | * Tears down the fixture, for example, closes a network connection. |
25 | 27 | * This method is called after a test is executed. |
26 | 28 | */ |
27 | - protected function tearDown() { |
|
29 | + protected function tearDown() |
|
30 | + { |
|
28 | 31 | |
29 | 32 | } |
30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
32 | 35 | * @covers AppBundle\Listener\LoginListener::getSubscribedEvents |
33 | 36 | * @todo Implement testGetSubscribedEvents(). |
34 | 37 | */ |
35 | - public function testGetSubscribedEvents() { |
|
38 | + public function testGetSubscribedEvents() |
|
39 | + { |
|
36 | 40 | // Remove the following lines when you implement this test. |
37 | 41 | $this->markTestIncomplete( |
38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
43 | 47 | * @covers AppBundle\Listener\LoginListener::onImplicitLogin |
44 | 48 | * @todo Implement testOnImplicitLogin(). |
45 | 49 | */ |
46 | - public function testOnImplicitLogin() { |
|
50 | + public function testOnImplicitLogin() |
|
51 | + { |
|
47 | 52 | // Remove the following lines when you implement this test. |
48 | 53 | $this->markTestIncomplete( |
49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
54 | 59 | * @covers AppBundle\Listener\LoginListener::onSecurityInteractiveLogin |
55 | 60 | * @todo Implement testOnSecurityInteractiveLogin(). |
56 | 61 | */ |
57 | - public function testOnSecurityInteractiveLogin() { |
|
62 | + public function testOnSecurityInteractiveLogin() |
|
63 | + { |
|
58 | 64 | // Remove the following lines when you implement this test. |
59 | 65 | $this->markTestIncomplete( |
60 | 66 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
5 | 5 | /** |
6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:18. |
7 | 7 | */ |
8 | -class AppBundleTest extends \PHPUnit_Framework_TestCase { |
|
8 | +class AppBundleTest extends \PHPUnit_Framework_TestCase |
|
9 | +{ |
|
9 | 10 | |
10 | 11 | /** |
11 | 12 | * @var AppBundle |
@@ -16,7 +17,8 @@ discard block |
||
16 | 17 | * Sets up the fixture, for example, opens a network connection. |
17 | 18 | * This method is called before a test is executed. |
18 | 19 | */ |
19 | - protected function setUp() { |
|
20 | + protected function setUp() |
|
21 | + { |
|
20 | 22 | $this->object = new AppBundle; |
21 | 23 | } |
22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
24 | 26 | * Tears down the fixture, for example, closes a network connection. |
25 | 27 | * This method is called after a test is executed. |
26 | 28 | */ |
27 | - protected function tearDown() { |
|
29 | + protected function tearDown() |
|
30 | + { |
|
28 | 31 | |
29 | 32 | } |
30 | 33 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Affiche les fournisseurs actifs. |
29 | 29 | * |
30 | - * @return QueryBuilder Requête DQL |
|
30 | + * @return \Doctrine\ORM\QueryBuilder Requête DQL |
|
31 | 31 | */ |
32 | 32 | public function getSuppliers() |
33 | 33 | { |