aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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}