aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 09:43:14 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 09:43:14 +0200
commitf2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch)
treef559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
parenta417b869237763ee115982d6367a82aa6174d74e (diff)
parent86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff)
downloadwallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.gz
wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.zst
wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.zip
Merge pull request #1916 from wallabag/cleanup
Convert array + phpDoc
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
index 490f9ede..15251ae7 100644
--- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
+++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
@@ -29,9 +29,9 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
29 29
30 $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v2.json', 'wallabag-v2.json'); 30 $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v2.json', 'wallabag-v2.json');
31 31
32 $data = array( 32 $data = [
33 'upload_import_file[file]' => $file, 33 'upload_import_file[file]' => $file,
34 ); 34 ];
35 35
36 $client->submit($form, $data); 36 $client->submit($form, $data);
37 37
@@ -39,7 +39,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
39 39
40 $crawler = $client->followRedirect(); 40 $crawler = $client->followRedirect();
41 41
42 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); 42 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
43 $this->assertContains('flashes.import.notice.summary', $body[0]); 43 $this->assertContains('flashes.import.notice.summary', $body[0]);
44 44
45 $content = $client->getContainer() 45 $content = $client->getContainer()
@@ -79,9 +79,9 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
79 79
80 $file = new UploadedFile(__DIR__.'/../fixtures/test.txt', 'test.txt'); 80 $file = new UploadedFile(__DIR__.'/../fixtures/test.txt', 'test.txt');
81 81
82 $data = array( 82 $data = [
83 'upload_import_file[file]' => $file, 83 'upload_import_file[file]' => $file,
84 ); 84 ];
85 85
86 $client->submit($form, $data); 86 $client->submit($form, $data);
87 87
@@ -89,7 +89,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
89 89
90 $crawler = $client->followRedirect(); 90 $crawler = $client->followRedirect();
91 91
92 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); 92 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
93 $this->assertContains('flashes.import.notice.failed', $body[0]); 93 $this->assertContains('flashes.import.notice.failed', $body[0]);
94 } 94 }
95} 95}