protected function TomeStaticEventTestBase::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.
7 calls to TomeStaticEventTestBase::assertUnsortedEquals()
- CollectPathsEventTest::testAddPath in modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php - @covers \Drupal\tome_static\Event\CollectPathsEvent::addPath
- CollectPathsEventTest::testAddPaths in modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php - @covers \Drupal\tome_static\Event\CollectPathsEvent::addPaths
- CollectPathsEventTest::testDeletePath in modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php - @covers \Drupal\tome_static\Event\CollectPathsEvent::deletePath
- CollectPathsEventTest::testReplacePath in modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php - @covers \Drupal\tome_static\Event\CollectPathsEvent::replacePath
- CollectPathsEventTest::testReplacePaths in modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php - @covers \Drupal\tome_static\Event\CollectPathsEvent::replacePaths
File
- modules/
tome_static/ tests/ src/ Kernel/ TomeStaticEventTestBase.php, line 54
Class
- TomeStaticEventTestBase
- Helper test class with some added functions for Tome static event testing.
Namespace
Drupal\Tests\tome_static\KernelCode
protected function assertUnsortedEquals(array $array1, array $array2) {
sort($array1);
sort($array2);
$this
->assertEquals($array1, $array2);
}