Skip to content

Commit

Permalink
fix tests side effect #1977
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinx13 committed Jan 15, 2024
1 parent 1f9b681 commit 7a184fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function testStatistiquesHomepage(string $route, string $email): void
public function provideRoutesStatistiquesDatas(): \Generator
{
yield 'Super Admin' => ['back_statistiques_filter', [], self::USER_SUPER_ADMIN, [
['result' => 35, 'label' => 'count_signalement'],
['result' => 69.4, 'label' => 'average_criticite'],
['result' => 37, 'label' => 'count_signalement'],
['result' => 66.6, 'label' => 'average_criticite'],
]];
yield 'Responsable Territoire' => ['back_statistiques_filter', [], self::USER_ADMIN_TERRITOIRE, [
['result' => 24, 'label' => 'count_signalement'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public function testGetData(): void
];

$actualData = $this->searchFilterOptionDataProvider->getData();

$this->assertSameSize($expectedData['criteres'], $actualData['criteres']);
$this->assertSameSize($expectedData['territories'], $actualData['territories']);
$this->assertSameSize($expectedData['partners'], $actualData['partners']);
Expand Down

0 comments on commit 7a184fd

Please sign in to comment.