mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
tests: Get rid of PHPUnit deprecations.
This commit is contained in:
@@ -72,6 +72,6 @@ final class CenterControllerTest extends WebTestCase
|
||||
$crawler = $client->request('GET', '/fr/admin/center/');
|
||||
|
||||
// Check the entity has been delete on the list
|
||||
$this->assertRegExp('/Foo/', $client->getResponse()->getContent());
|
||||
$this->assertMatchesRegularExpression('/Foo/', $client->getResponse()->getContent());
|
||||
}
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ final class LoginControllerTest extends WebTestCase
|
||||
$this->assertTrue($client->getResponse()->isRedirect());
|
||||
|
||||
//the response is not a login page, but on a new page
|
||||
$this->assertNotRegExp('/\/login$/', $client->getResponse()
|
||||
$this->assertDoesNotMatchRegularExpression('/\/login$/', $client->getResponse()
|
||||
->headers
|
||||
->get('location'));
|
||||
|
||||
@@ -48,7 +48,7 @@ final class LoginControllerTest extends WebTestCase
|
||||
$client->followRedirects(true);
|
||||
$crawler = $client->request('GET', '/');
|
||||
|
||||
$this->assertRegExp('/center a_social/', $client->getResponse()
|
||||
$this->assertMatchesRegularExpression('/center a_social/', $client->getResponse()
|
||||
->getContent());
|
||||
$logoutLinkFilter = $crawler->filter('a:contains("Se déconnecter")');
|
||||
|
||||
@@ -63,7 +63,7 @@ final class LoginControllerTest extends WebTestCase
|
||||
$client->followRedirect(); //redirect to login page
|
||||
|
||||
//check we are back on login page
|
||||
$this->assertRegExp('/\/login$/', $client->getResponse()
|
||||
$this->assertMatchesRegularExpression('/\/login$/', $client->getResponse()
|
||||
->headers
|
||||
->get('location'));
|
||||
}
|
||||
|
@@ -66,7 +66,7 @@ final class PermissionsGroupControllerTest extends WebTestCase
|
||||
$crawler = $client->followRedirect();
|
||||
|
||||
// Check the entity has been delete on the list
|
||||
$this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
|
||||
$this->assertDoesNotMatchRegularExpression('/Foo/', $client->getResponse()->getContent());
|
||||
}
|
||||
|
||||
*/
|
||||
|
Reference in New Issue
Block a user