DX: apply rector rules for phpunit up to 90

This commit is contained in:
2023-08-31 11:08:42 +02:00
parent e4e52234ad
commit b85cd1b994
22 changed files with 62 additions and 9 deletions

View File

@@ -250,7 +250,7 @@ final class ReportControllerTest extends WebTestCase
$link,
'There is a "add a report" link in menu'
);
$this->assertContains(
$this->assertStringContainsString(
sprintf(
'/fr/person/%d/report/select/type/for/creation',
self::$person->getId()

View File

@@ -23,6 +23,9 @@ final class ChillReportExtensionTest extends KernelTestCase
/*
* Check if class Chill\ReportBundle\Entity\Report is in chill_custom_fields.customizables_entities
*/
/**
* @doesNotPerformAssertions
*/
public function testDeclareReportAsCustomizable()
{
self::bootKernel(['environment' => 'test']);

View File

@@ -96,9 +96,9 @@ final class ReportSearchTest extends WebTestCase
$crawlerSocial = $clientSocial->request('GET', '/fr/search', $params);
$crawlerAdministrative = $clientAdministrative->request('GET', '/fr/search', $params);
$this->assertNotContains('social', $crawlerAdministrative->filter('.content')
$this->assertStringNotContainsString('social', $crawlerAdministrative->filter('.content')
->text());
$this->assertNotContains('administrative', $crawlerAdministrative->filter('.content')
$this->assertStringNotContainsString('administrative', $crawlerAdministrative->filter('.content')
->text());
}

View File

@@ -123,7 +123,7 @@ final class TimelineProviderTest extends WebTestCase
$client->getResponse()->isSuccessful(),
'The page timeline is loaded successfully'
);
$this->assertContains(
$this->assertStringContainsString(
'a ajouté un rapport',
$crawler->text(),
'the page contains the text "a publié un rapport"'