[CORE][Form][TESTS] Fix FormTest::handle
This commit is contained in:
@@ -66,7 +66,7 @@ class SecurityTest extends GNUsocialTestCase
|
||||
{
|
||||
self::testLogin('taken_user', 'wrong password');
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertSelectorTextContains('.alert', 'Invalid login credentials');
|
||||
$this->assertSelectorTextContains('.alert', 'The presented password is invalid.');
|
||||
$this->assertRouteSame('security_login');
|
||||
}
|
||||
|
||||
@@ -100,11 +100,8 @@ class SecurityTest extends GNUsocialTestCase
|
||||
[$client,] = self::testRegister('new_nickname', 'new_email@provider.any', 'foobar');
|
||||
$this->assertResponseStatusCodeSame(302);
|
||||
$crawler = $client->followRedirect();
|
||||
$this->assertRouteSame('root');
|
||||
$client->followRedirect();
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertRouteSame('security_login');
|
||||
$this->assertSelectorNotExists('.alert');
|
||||
$this->assertSelectorTextContains('.profile-info-url-nickname', 'new_nickname');
|
||||
}
|
||||
|
||||
public function testRegisterDifferentPassword()
|
||||
|
Reference in New Issue
Block a user