mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 01:21:03 +00:00
Changed tests
This commit is contained in:
parent
821bb87685
commit
71254701b7
3 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue