mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-01 02:49:42 +00:00
fix cs
This commit is contained in:
@@ -28,6 +28,33 @@ final class TimelineAccompanyingPeriodTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
/**
|
||||
* @dataProvider provideDataPersonWithAccompanyingPeriod
|
||||
*/
|
||||
public function testEntriesAreShown(mixed $personId): never
|
||||
{
|
||||
$this->markTestSkipped('page does not work');
|
||||
|
||||
$client = $this->getClientAuthenticated();
|
||||
|
||||
$crawler = $client->request('GET', "/en/person/{$personId}/timeline");
|
||||
|
||||
$this->assertTrue(
|
||||
$client->getResponse()->isSuccessful(),
|
||||
'the timeline page loads sucessfully'
|
||||
);
|
||||
$this->assertGreaterThan(
|
||||
0,
|
||||
$crawler->filter('.timeline div')->count(),
|
||||
'the timeline page contains multiple div inside a .timeline element'
|
||||
);
|
||||
$this->assertStringContainsString(
|
||||
'est ouvert',
|
||||
$crawler->filter('.timeline')->text(),
|
||||
"the text 'est ouvert' is present"
|
||||
);
|
||||
}
|
||||
|
||||
public static function provideDataPersonWithAccompanyingPeriod()
|
||||
{
|
||||
self::bootKernel();
|
||||
@@ -55,31 +82,4 @@ final class TimelineAccompanyingPeriodTest extends WebTestCase
|
||||
|
||||
yield [\array_pop($personIds)['id']];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideDataPersonWithAccompanyingPeriod
|
||||
*/
|
||||
public function testEntriesAreShown(mixed $personId): never
|
||||
{
|
||||
$this->markTestSkipped('page does not work');
|
||||
|
||||
$client = $this->getClientAuthenticated();
|
||||
|
||||
$crawler = $client->request('GET', "/en/person/{$personId}/timeline");
|
||||
|
||||
$this->assertTrue(
|
||||
$client->getResponse()->isSuccessful(),
|
||||
'the timeline page loads sucessfully'
|
||||
);
|
||||
$this->assertGreaterThan(
|
||||
0,
|
||||
$crawler->filter('.timeline div')->count(),
|
||||
'the timeline page contains multiple div inside a .timeline element'
|
||||
);
|
||||
$this->assertStringContainsString(
|
||||
'est ouvert',
|
||||
$crawler->filter('.timeline')->text(),
|
||||
"the text 'est ouvert' is present"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user