aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-28 16:47:41 +0100
committerGitHub <noreply@github.com>2016-11-28 16:47:41 +0100
commitad51d77146494f04466c288b05b57b0d96113fd5 (patch)
tree278c6a17d808bd3d9aa132d9ef93d7e54842de58 /tests
parent34ea7be6228c633ef8da703994eed034026e9c18 (diff)
parent9aa991281ddd315f607cabcfc3b917401d3d2104 (diff)
downloadwallabag-ad51d77146494f04466c288b05b57b0d96113fd5.tar.gz
wallabag-ad51d77146494f04466c288b05b57b0d96113fd5.tar.zst
wallabag-ad51d77146494f04466c288b05b57b0d96113fd5.zip
Merge pull request #2662 from wallabag/add-list-view
Add list view
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}