mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
tests: Get rid of PHPUnit deprecations.
This commit is contained in:
@@ -212,7 +212,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
|
||||
$linkSee = $crawler->filter('.bt-view')->links();
|
||||
$this->assertGreaterThan(0, count($linkSee));
|
||||
$this->assertRegExp(sprintf(
|
||||
$this->assertMatchesRegularExpression(sprintf(
|
||||
'|/fr/person/%s/report/[0-9]*/view$|',
|
||||
self::$person->getId(),
|
||||
$reportId
|
||||
@@ -220,7 +220,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
|
||||
$linkUpdate = $crawler->filter('.bt-update')->links();
|
||||
$this->assertGreaterThan(0, count($linkUpdate));
|
||||
$this->assertRegExp(sprintf(
|
||||
$this->assertMatchesRegularExpression(sprintf(
|
||||
'|/fr/person/%s/report/[0-9]*/edit$|',
|
||||
self::$person->getId(),
|
||||
$reportId
|
||||
@@ -372,7 +372,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
);
|
||||
$client->followRedirect();
|
||||
|
||||
$this->assertRegExp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
'|/fr/person/' . self::$person->getId() . '/report/[0-9]*/view$|',
|
||||
$client->getHistory()->current()->getUri(),
|
||||
"The next page is a redirection to the new report's view page"
|
||||
|
Reference in New Issue
Block a user