mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43: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"
|
||||
|
@@ -43,7 +43,7 @@ final class ReportSearchTest extends WebTestCase
|
||||
]);
|
||||
|
||||
$this->assertTrue($client->getResponse()->isSuccessful());
|
||||
$this->assertRegExp('/Situation de logement/i', $crawler->text());
|
||||
$this->assertMatchesRegularExpression('/Situation de logement/i', $crawler->text());
|
||||
}
|
||||
|
||||
public function testSearchDoubleDate()
|
||||
@@ -77,7 +77,7 @@ final class ReportSearchTest extends WebTestCase
|
||||
]);
|
||||
|
||||
$this->assertTrue($client->getResponse()->isSuccessful());
|
||||
$this->assertRegExp('/Situation de logement/i', $crawler->text());
|
||||
$this->assertMatchesRegularExpression('/Situation de logement/i', $crawler->text());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user