Changed tests

This commit is contained in:
Nicolas Lœuillet 2016-09-08 16:00:39 +02:00 committed by Jeremy Benoist
parent 821bb87685
commit 71254701b7
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
3 changed files with 4 additions and 4 deletions

View file

@ -149,7 +149,7 @@
{{ form_widget(form.user._token) }}
{{ form_widget(form.user.save) }}
{% if enabled_users > 1 %}
<a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a>
<a class='btn red delete-account' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a>
{% endif %}
</form>

View file

@ -169,7 +169,7 @@
</form>
{% if enabled_users > 1 %}
<a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a>
<a class='btn red delete-account' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a>
{% endif %}
</div>

View file

@ -639,7 +639,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
$crawler = $client->request('GET', '/config');
$deleteLink = $crawler->filter('.red')->last()->link();
$deleteLink = $crawler->filter('.delete-account')->last()->link();
$client->click($deleteLink);
$this->assertEquals(302, $client->getResponse()->getStatusCode());
@ -653,6 +653,6 @@ class ConfigControllerTest extends WallabagCoreTestCase
->getOneOrNullResult()
;
$this->assertTrue(false !== $user);
$this->assertNull($user);
}
}