diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php | 12 |
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 | } |