aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php6
-rw-r--r--tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php3
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php26
3 files changed, 30 insertions, 5 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php b/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php
index c4bd6dac..a0e2939c 100644
--- a/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php
+++ b/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php
@@ -45,6 +45,9 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
45 $this->getEntityManager()->flush(); 45 $this->getEntityManager()->flush();
46 } 46 }
47 47
48 /**
49 * @group NetworkCalls
50 */
48 public function testRunReloadEntryCommand() 51 public function testRunReloadEntryCommand()
49 { 52 {
50 $application = new Application($this->getClient()->getKernel()); 53 $application = new Application($this->getClient()->getKernel());
@@ -70,6 +73,9 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
70 $this->assertContains('Done', $tester->getDisplay()); 73 $this->assertContains('Done', $tester->getDisplay());
71 } 74 }
72 75
76 /**
77 * @group NetworkCalls
78 */
73 public function testRunReloadEntryWithUsernameCommand() 79 public function testRunReloadEntryWithUsernameCommand()
74 { 80 {
75 $application = new Application($this->getClient()->getKernel()); 81 $application = new Application($this->getClient()->getKernel());
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
index 40a1aa97..92d22267 100644
--- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
@@ -812,6 +812,9 @@ class ConfigControllerTest extends WallabagCoreTestCase
812 $em->flush(); 812 $em->flush();
813 } 813 }
814 814
815 /**
816 * @group NetworkCalls
817 */
815 public function testDeleteAccount() 818 public function testDeleteAccount()
816 { 819 {
817 $client = $this->getClient(); 820 $client = $this->getClient();
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 5b806830..0aa562d8 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -40,6 +40,9 @@ class EntryControllerTest extends WallabagCoreTestCase
40 $this->assertContains('login', $client->getResponse()->headers->get('location')); 40 $this->assertContains('login', $client->getResponse()->headers->get('location'));
41 } 41 }
42 42
43 /**
44 * @group NetworkCalls
45 */
43 public function testQuickstart() 46 public function testQuickstart()
44 { 47 {
45 $this->logInAs('empty'); 48 $this->logInAs('empty');
@@ -87,6 +90,9 @@ class EntryControllerTest extends WallabagCoreTestCase
87 $this->assertCount(1, $crawler->filter('form[name=entry]')); 90 $this->assertCount(1, $crawler->filter('form[name=entry]'));
88 } 91 }
89 92
93 /**
94 * @group NetworkCalls
95 */
90 public function testPostNewViaBookmarklet() 96 public function testPostNewViaBookmarklet()
91 { 97 {
92 $this->logInAs('admin'); 98 $this->logInAs('admin');
@@ -131,7 +137,7 @@ class EntryControllerTest extends WallabagCoreTestCase
131 } 137 }
132 138
133 /** 139 /**
134 * This test will require an internet connection. 140 * @group NetworkCalls
135 */ 141 */
136 public function testPostNewOk() 142 public function testPostNewOk()
137 { 143 {
@@ -169,6 +175,9 @@ class EntryControllerTest extends WallabagCoreTestCase
169 $client->getContainer()->get('craue_config')->set('store_article_headers', 0); 175 $client->getContainer()->get('craue_config')->set('store_article_headers', 0);
170 } 176 }
171 177
178 /**
179 * @group NetworkCalls
180 */
172 public function testPostWithMultipleAuthors() 181 public function testPostWithMultipleAuthors()
173 { 182 {
174 $url = 'https://www.liberation.fr/planete/2017/04/05/donald-trump-et-xi-jinping-tentative-de-flirt-en-floride_1560768'; 183 $url = 'https://www.liberation.fr/planete/2017/04/05/donald-trump-et-xi-jinping-tentative-de-flirt-en-floride_1560768';
@@ -229,6 +238,9 @@ class EntryControllerTest extends WallabagCoreTestCase
229 $this->assertContains('/view/', $client->getResponse()->getTargetUrl()); 238 $this->assertContains('/view/', $client->getResponse()->getTargetUrl());
230 } 239 }
231 240
241 /**
242 * @group NetworkCalls
243 */
232 public function testPostNewOkUrlExistWithAccent() 244 public function testPostNewOkUrlExistWithAccent()
233 { 245 {
234 $this->logInAs('admin'); 246 $this->logInAs('admin');
@@ -265,7 +277,7 @@ class EntryControllerTest extends WallabagCoreTestCase
265 } 277 }
266 278
267 /** 279 /**
268 * This test will require an internet connection. 280 * @group NetworkCalls
269 */ 281 */
270 public function testPostNewOkUrlExistWithRedirection() 282 public function testPostNewOkUrlExistWithRedirection()
271 { 283 {
@@ -303,7 +315,7 @@ class EntryControllerTest extends WallabagCoreTestCase
303 } 315 }
304 316
305 /** 317 /**
306 * This test will require an internet connection. 318 * @group NetworkCalls
307 */ 319 */
308 public function testPostNewThatWillBeTagged() 320 public function testPostNewThatWillBeTagged()
309 { 321 {
@@ -430,7 +442,7 @@ class EntryControllerTest extends WallabagCoreTestCase
430 } 442 }
431 443
432 /** 444 /**
433 * This test will require an internet connection. 445 * @group NetworkCalls
434 */ 446 */
435 public function testReload() 447 public function testReload()
436 { 448 {
@@ -1056,6 +1068,9 @@ class EntryControllerTest extends WallabagCoreTestCase
1056 $this->assertSame(404, $client->getResponse()->getStatusCode()); 1068 $this->assertSame(404, $client->getResponse()->getStatusCode());
1057 } 1069 }
1058 1070
1071 /**
1072 * @group NetworkCalls
1073 */
1059 public function testNewEntryWithDownloadImagesEnabled() 1074 public function testNewEntryWithDownloadImagesEnabled()
1060 { 1075 {
1061 $this->downloadImagesEnabled = true; 1076 $this->downloadImagesEnabled = true;
@@ -1383,6 +1398,7 @@ class EntryControllerTest extends WallabagCoreTestCase
1383 1398
1384 /** 1399 /**
1385 * @dataProvider dataForLanguage 1400 * @dataProvider dataForLanguage
1401 * @group NetworkCalls
1386 */ 1402 */
1387 public function testLanguageValidation($url, $expectedLanguage) 1403 public function testLanguageValidation($url, $expectedLanguage)
1388 { 1404 {
@@ -1414,7 +1430,7 @@ class EntryControllerTest extends WallabagCoreTestCase
1414 } 1430 }
1415 1431
1416 /** 1432 /**
1417 * This test will require an internet connection. 1433 * @group NetworkCalls
1418 */ 1434 */
1419 public function testRestrictedArticle() 1435 public function testRestrictedArticle()
1420 { 1436 {