diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php index 8d353a71..f7de3fef 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | |||
@@ -29,9 +29,9 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
29 | 29 | ||
30 | $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v1.json', 'wallabag-v1.json'); | 30 | $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v1.json', 'wallabag-v1.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 | ||
@@ -54,7 +54,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
54 | 54 | ||
55 | $this->assertTrue($content->getTags()->contains($tag)); | 55 | $this->assertTrue($content->getTags()->contains($tag)); |
56 | 56 | ||
57 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); | 57 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); |
58 | $this->assertContains('flashes.import.notice.summary', $body[0]); | 58 | $this->assertContains('flashes.import.notice.summary', $body[0]); |
59 | } | 59 | } |
60 | 60 | ||
@@ -68,10 +68,10 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
68 | 68 | ||
69 | $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v1-read.json', 'wallabag-v1-read.json'); | 69 | $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v1-read.json', 'wallabag-v1-read.json'); |
70 | 70 | ||
71 | $data = array( | 71 | $data = [ |
72 | 'upload_import_file[file]' => $file, | 72 | 'upload_import_file[file]' => $file, |
73 | 'upload_import_file[mark_as_read]' => 1, | 73 | 'upload_import_file[mark_as_read]' => 1, |
74 | ); | 74 | ]; |
75 | 75 | ||
76 | $client->submit($form, $data); | 76 | $client->submit($form, $data); |
77 | 77 | ||
@@ -99,7 +99,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
99 | 99 | ||
100 | $this->assertTrue($content2->isArchived()); | 100 | $this->assertTrue($content2->isArchived()); |
101 | 101 | ||
102 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); | 102 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); |
103 | $this->assertContains('flashes.import.notice.summary', $body[0]); | 103 | $this->assertContains('flashes.import.notice.summary', $body[0]); |
104 | } | 104 | } |
105 | 105 | ||
@@ -113,9 +113,9 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
113 | 113 | ||
114 | $file = new UploadedFile(__DIR__.'/../fixtures/test.txt', 'test.txt'); | 114 | $file = new UploadedFile(__DIR__.'/../fixtures/test.txt', 'test.txt'); |
115 | 115 | ||
116 | $data = array( | 116 | $data = [ |
117 | 'upload_import_file[file]' => $file, | 117 | 'upload_import_file[file]' => $file, |
118 | ); | 118 | ]; |
119 | 119 | ||
120 | $client->submit($form, $data); | 120 | $client->submit($form, $data); |
121 | 121 | ||
@@ -123,7 +123,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
123 | 123 | ||
124 | $crawler = $client->followRedirect(); | 124 | $crawler = $client->followRedirect(); |
125 | 125 | ||
126 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); | 126 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); |
127 | $this->assertContains('flashes.import.notice.failed', $body[0]); | 127 | $this->assertContains('flashes.import.notice.failed', $body[0]); |
128 | } | 128 | } |
129 | } | 129 | } |