aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-28 11:12:35 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-28 14:27:58 +0100
commit8f3ff39ca364a28163fb9ced0eb3291e0c1caeaf (patch)
treeb4031a24bfd1bc45da6362d10d9de5b8e9375e8a /tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
parent9f01d0fde09fa055a7db9f26e77c5e6b3d6c2224 (diff)
downloadwallabag-8f3ff39ca364a28163fb9ced0eb3291e0c1caeaf.tar.gz
wallabag-8f3ff39ca364a28163fb9ced0eb3291e0c1caeaf.tar.zst
wallabag-8f3ff39ca364a28163fb9ced0eb3291e0c1caeaf.zip
Added test for list view
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
index a28c3b6b..61726eb6 100644
--- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2 2
3namespace Tests\Wallabag\CoreBundle\Controller; 3namespace tests\Wallabag\CoreBundle\Controller;
4 4
5use Tests\Wallabag\CoreBundle\WallabagCoreTestCase; 5use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
6use Wallabag\CoreBundle\Entity\Config; 6use Wallabag\CoreBundle\Entity\Config;
@@ -836,4 +836,21 @@ class ConfigControllerTest extends WallabagCoreTestCase
836 836
837 $this->assertEmpty($annotationsReset, 'Annotations were reset'); 837 $this->assertEmpty($annotationsReset, 'Annotations were reset');
838 } 838 }
839
840 public function testSwitchViewMode()
841 {
842 $this->logInAs('admin');
843 $client = $this->getClient();
844
845 $client->request('GET', '/unread/list');
846
847 $this->assertNotContains('listmode', $client->getResponse()->getContent());
848
849 $client->request('GET', '/config/view-mode');
850 $crawler = $client->followRedirect();
851
852 $client->request('GET', '/unread/list');
853
854 $this->assertContains('listmode', $client->getResponse()->getContent());
855 }
839} 856}