X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FTests%2FController%2FWallabagV2ControllerTest.php;h=15251ae7ba115d322c97c03a8d61aa6bcf81946e;hb=4094ea47712efbe58624ff74daeb1f77c9b0edcf;hp=490f9edeac834a38903eb178ed57c14d1e1c748d;hpb=7eccbda99f16dc39ee01a0c81ab88293e9b268fd;p=github%2Fwallabag%2Fwallabag.git 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 $file = new UploadedFile(__DIR__.'/../fixtures/wallabag-v2.json', 'wallabag-v2.json'); - $data = array( + $data = [ 'upload_import_file[file]' => $file, - ); + ]; $client->submit($form, $data); @@ -39,7 +39,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase $crawler = $client->followRedirect(); - $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); + $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); $this->assertContains('flashes.import.notice.summary', $body[0]); $content = $client->getContainer() @@ -79,9 +79,9 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase $file = new UploadedFile(__DIR__.'/../fixtures/test.txt', 'test.txt'); - $data = array( + $data = [ 'upload_import_file[file]' => $file, - ); + ]; $client->submit($form, $data); @@ -89,7 +89,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase $crawler = $client->followRedirect(); - $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); + $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); $this->assertContains('flashes.import.notice.failed', $body[0]); } }