mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
DX: apply rector rules for phpunit up to 90
This commit is contained in:
@@ -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()
|
||||
|
@@ -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']);
|
||||
|
@@ -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());
|
||||
}
|
||||
|
||||
|
@@ -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"'
|
||||
|
Reference in New Issue
Block a user