You are here

protected function ViewsCacheabilityMetadataExportTest::assertArrayEquals in Search API 8

Checks that the given arrays have the same values.

Parameters

array $array1: One of the arrays to compare.

array $array2: One of the arrays to compare.

2 calls to ViewsCacheabilityMetadataExportTest::assertArrayEquals()
ViewsCacheabilityMetadataExportTest::assertViewCacheabilityMetadata in tests/src/Kernel/Views/ViewsCacheabilityMetadataExportTest.php
Checks that the given view has the expected cacheability metadata.
ViewsCacheabilityMetadataExportTest::assertViewConfigCacheabilityMetadata in tests/src/Kernel/Views/ViewsCacheabilityMetadataExportTest.php
Checks that the given view config has the expected cacheability metadata.

File

tests/src/Kernel/Views/ViewsCacheabilityMetadataExportTest.php, line 228

Class

ViewsCacheabilityMetadataExportTest
Tests that cacheability metadata is included when Views config is exported.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

protected function assertArrayEquals(array $array1, array $array2) {
  sort($array1);
  sort($array2);
  $this
    ->assertEquals($array1, $array2);
}