apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -38,10 +38,7 @@ final class ReportControllerTest extends WebTestCase
*/
private static $client;
/**
* @var \Doctrine\ORM\EntityManagerInterface
*/
private static $em;
private static ?object $em = null;
/**
* @var CustomFieldsGroup

View File

@@ -27,15 +27,9 @@ use function count;
*/
final class TimelineProviderTest extends WebTestCase
{
/**
* @var \Doctrine\ORM\EntityManager
*/
private static $em;
private static ?object $em = null;
/**
* @var Person
*/
private $person;
private \Chill\PersonBundle\Entity\Person $person;
/**
* @var Report
@@ -158,18 +152,8 @@ final class TimelineProviderTest extends WebTestCase
->count(),
'the page contains a .report .summary element'
);
$this->assertContains(
'blah blah',
$crawler->filter('.report_entry .summary')
->text(),
'the page contains the text "blah blah"'
);
$this->assertContains(
'Propriétaire',
$crawler->filter('.report_entry .summary')
->text(),
'the page contains the mention "Propriétaire"'
);
$this->assertSelectorTextContains('.report_entry .summary', 'blah blah', 'the page contains the text "blah blah"');
$this->assertSelectorTextContains('.report_entry .summary', 'Propriétaire', 'the page contains the mention "Propriétaire"');
}
/**