aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 11:36:01 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 12:25:29 +0200
commit4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch)
tree3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
parent7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff)
downloadwallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
index 1457c807..8af37ea4 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
@@ -32,9 +32,9 @@ class TagControllerTest extends WallabagCoreTestCase
32 32
33 $form = $crawler->filter('form[name=tag]')->form(); 33 $form = $crawler->filter('form[name=tag]')->form();
34 34
35 $data = array( 35 $data = [
36 'tag[label]' => $this->tagName, 36 'tag[label]' => $this->tagName,
37 ); 37 ];
38 38
39 $client->submit($form, $data); 39 $client->submit($form, $data);
40 $this->assertEquals(302, $client->getResponse()->getStatusCode()); 40 $this->assertEquals(302, $client->getResponse()->getStatusCode());
@@ -53,9 +53,9 @@ class TagControllerTest extends WallabagCoreTestCase
53 $this->assertEquals(1, count($newEntry->getTags())); 53 $this->assertEquals(1, count($newEntry->getTags()));
54 54
55 # tag already exists but still not assigned to this entry 55 # tag already exists but still not assigned to this entry
56 $data = array( 56 $data = [
57 'tag[label]' => 'foo', 57 'tag[label]' => 'foo',
58 ); 58 ];
59 59
60 $client->submit($form, $data); 60 $client->submit($form, $data);
61 $this->assertEquals(302, $client->getResponse()->getStatusCode()); 61 $this->assertEquals(302, $client->getResponse()->getStatusCode());
@@ -82,9 +82,9 @@ class TagControllerTest extends WallabagCoreTestCase
82 82
83 $form = $crawler->filter('form[name=tag]')->form(); 83 $form = $crawler->filter('form[name=tag]')->form();
84 84
85 $data = array( 85 $data = [
86 'tag[label]' => 'foo2, bar2', 86 'tag[label]' => 'foo2, bar2',
87 ); 87 ];
88 88
89 $client->submit($form, $data); 89 $client->submit($form, $data);
90 $this->assertEquals(302, $client->getResponse()->getStatusCode()); 90 $this->assertEquals(302, $client->getResponse()->getStatusCode());