protected function StaticGeneratorTest::assertUnsortedEquals in Tome 8
Asserts that two arrays are equal, ignoring sort order.
Parameters
array $array1: The first array to compare.
array $array2: The second array to compare.
3 calls to StaticGeneratorTest::assertUnsortedEquals()
- StaticGeneratorTest::testDomainNegotiation in modules/
tome_static/ tests/ src/ Kernel/ StaticGeneratorTest.php - @covers \Drupal\tome_static\EventSubscriber\LanguagePathSubscriber::collectPaths
- StaticGeneratorTest::testGetPaths in modules/
tome_static/ tests/ src/ Kernel/ StaticGeneratorTest.php - @covers \Drupal\tome_static\StaticGenerator::getPaths @covers \Drupal\tome_static\EventSubscriber\LanguagePathSubscriber::collectPaths @covers \Drupal\tome_static\EventSubscriber\EntityPathSubscriber::collectPaths @covers…
- StaticGeneratorTest::testLanguagePathPrefix in modules/
tome_static/ tests/ src/ Kernel/ StaticGeneratorTest.php - @covers \Drupal\tome_static\EventSubscriber\LanguagePathSubscriber::collectPaths
File
- modules/
tome_static/ tests/ src/ Kernel/ StaticGeneratorTest.php, line 320
Class
- StaticGeneratorTest
- Tests that static site generation works.
Namespace
Drupal\Tests\tome_static\KernelCode
protected function assertUnsortedEquals(array $array1, array $array2) {
sort($array1);
sort($array2);
$this
->assertEquals($array1, $array2);
}