Skip to content

Commit

Permalink
Merge branch 'main' into fixMultinamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Sep 2, 2024
2 parents 7293887 + 5d3fda6 commit e96ce1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/AutoReview/GAE2ETest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use PHPUnit\Framework\Attributes\CoversNothing;
use PHPUnit\Framework\TestCase;
use function array_diff;
use function sort;

/**
* @internal
Expand All @@ -31,7 +32,9 @@ class GAE2ETest extends TestCase

public function test_github_actions_executes_all_the_e2e_tests(): void
{
$expected = array_values(array_diff(E2ECollector::getE2ENames(), self::IGNORED_E2E_TESTS));
$expected = array_diff(E2ECollector::getE2ENames(), self::IGNORED_E2E_TESTS);
sort($expected);

$actual = GAE2ECollector::getExecutedE2ETests();

self::assertEqualsCanonicalizing($expected, $actual);
Expand Down
6 changes: 5 additions & 1 deletion tests/AutoReview/MakefileE2ETest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use function array_values;
use function current;
use function Safe\file_get_contents;
use function sort;
use function str_starts_with;

/**
Expand Down Expand Up @@ -93,7 +94,10 @@ private static function retrieveE2ERule(): array
$e2eRule = current($e2eRules);
self::assertNotFalse($e2eRule, 'Expected to find the e2e rule in the Makefile.');

return $e2eRule->getPrerequisites();
$finalE2eRules = $e2eRule->getPrerequisites();
sort($finalE2eRules);

return $finalE2eRules;
}

/**
Expand Down

0 comments on commit e96ce1d

Please sign in to comment.