diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-08 16:00:39 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-08 13:27:18 +0200 |
commit | 71254701b7e5364516b7510e9237c00c678dac1c (patch) | |
tree | fef99fa36e318346b5b861039aa18333c675fbfa | |
parent | 821bb8768507a16a28e7f98143aba5218691c18b (diff) | |
download | wallabag-71254701b7e5364516b7510e9237c00c678dac1c.tar.gz wallabag-71254701b7e5364516b7510e9237c00c678dac1c.tar.zst wallabag-71254701b7e5364516b7510e9237c00c678dac1c.zip |
Changed tests
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index 29575272..b10db473 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | |||
@@ -149,7 +149,7 @@ | |||
149 | {{ form_widget(form.user._token) }} | 149 | {{ form_widget(form.user._token) }} |
150 | {{ form_widget(form.user.save) }} | 150 | {{ form_widget(form.user.save) }} |
151 | {% if enabled_users > 1 %} | 151 | {% if enabled_users > 1 %} |
152 | <a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a> | 152 | <a class='btn red delete-account' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a> |
153 | {% endif %} | 153 | {% endif %} |
154 | </form> | 154 | </form> |
155 | 155 | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 5aa3eabe..a8a3f9dc 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | |||
@@ -169,7 +169,7 @@ | |||
169 | </form> | 169 | </form> |
170 | 170 | ||
171 | {% if enabled_users > 1 %} | 171 | {% if enabled_users > 1 %} |
172 | <a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a> | 172 | <a class='btn red delete-account' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a> |
173 | {% endif %} | 173 | {% endif %} |
174 | </div> | 174 | </div> |
175 | 175 | ||
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php index 23e7e786..282bf570 100644 --- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | |||
@@ -639,7 +639,7 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
639 | 639 | ||
640 | $crawler = $client->request('GET', '/config'); | 640 | $crawler = $client->request('GET', '/config'); |
641 | 641 | ||
642 | $deleteLink = $crawler->filter('.red')->last()->link(); | 642 | $deleteLink = $crawler->filter('.delete-account')->last()->link(); |
643 | 643 | ||
644 | $client->click($deleteLink); | 644 | $client->click($deleteLink); |
645 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | 645 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); |
@@ -653,6 +653,6 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
653 | ->getOneOrNullResult() | 653 | ->getOneOrNullResult() |
654 | ; | 654 | ; |
655 | 655 | ||
656 | $this->assertTrue(false !== $user); | 656 | $this->assertNull($user); |
657 | } | 657 | } |
658 | } | 658 | } |