aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
index a28c3b6b..447feb4f 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,23 @@ 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
856 $client->request('GET', '/config/view-mode');
857 }
839} 858}