protected function CriticalCssHeadTest::assertEqualsArrays in Critical CSS 8
Asserts that two arrays are equal.
Parameters
array $expected: Expected array.
array $actual: Actual array.
string $message: Message to show on an error.
1 call to CriticalCssHeadTest::assertEqualsArrays()
- CriticalCssHeadTest::testCriticalCssInHead in tests/
src/ Functional/ CriticalCssHeadTest.php - Test critical CSS inside <head> element.
File
- tests/
src/ Functional/ CriticalCssHeadTest.php, line 141
Class
- CriticalCssHeadTest
- Tests Critical CSS functionality on HTML HEAD.
Namespace
Drupal\Tests\critical_css\FunctionalCode
protected function assertEqualsArrays(array $expected, array $actual, $message) {
$this
->assertTrue(count($expected) == count(array_intersect($expected, $actual)), $message);
}