mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
tests: Get rid of PHPUnit deprecations.
This commit is contained in:
@@ -111,7 +111,7 @@ final class PersonAddressControllerTest extends WebTestCase
|
||||
|
||||
$crawler = $this->client->followRedirect();
|
||||
|
||||
$this->assertRegexp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
'|/fr/person/[0-9]{1,}/address/list|',
|
||||
$this->client->getHistory()->current()->getUri(),
|
||||
'assert that the current page is on |/fr/person/[0-9]{1,}/address/list|'
|
||||
@@ -169,7 +169,7 @@ final class PersonAddressControllerTest extends WebTestCase
|
||||
|
||||
$crawler = $this->client->followRedirect();
|
||||
|
||||
$this->assertRegexp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
'|/fr/person/[0-9]{1,}/address/list|',
|
||||
$this->client->getHistory()->current()->getUri(),
|
||||
'assert that the current page is on |/fr/person/[0-9]{1,}/address/list|'
|
||||
|
@@ -206,7 +206,7 @@ final class PersonControllerCreateTest extends WebTestCase
|
||||
$client->followRedirect();
|
||||
|
||||
// visualize regexp here : http://jex.im/regulex/#!embed=false&flags=&re=%2Ffr%2Fperson%2F[1-9][0-9]*%2Fgeneral%2Fedit%24
|
||||
$this->assertRegExp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
'|/fr/person/[1-9][0-9]*/general/edit$|',
|
||||
$client->getHistory()->current()->getUri(),
|
||||
'a valid form redirect to url /{_locale}/person/{personId}/general/edit'
|
||||
@@ -259,7 +259,7 @@ final class PersonControllerCreateTest extends WebTestCase
|
||||
'a valid form redirect to url /{_locale}/person/{personId}/general/edit'
|
||||
);
|
||||
$client->followRedirect();
|
||||
$this->assertRegExp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
'|/fr/person/[1-9][0-9]*/general/edit$|',
|
||||
$client->getHistory()->current()->getUri(),
|
||||
'a valid form redirect to url /{_locale}/person/{personId}/general/edit'
|
||||
|
Reference in New Issue
Block a user