You are here

protected function BigPipeTest::assertSetsEqual in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/tests/src/Functional/BigPipeTest.php \Drupal\Tests\big_pipe\Functional\BigPipeTest::assertSetsEqual()
  2. 9 core/modules/big_pipe/tests/src/Functional/BigPipeTest.php \Drupal\Tests\big_pipe\Functional\BigPipeTest::assertSetsEqual()

Asserts whether arrays A and B are equal, when treated as sets.

@todo This method is broken. Fix it in https://www.drupal.org/project/drupal/issues/3144926

@internal

File

core/modules/big_pipe/tests/src/Functional/BigPipeTest.php, line 448

Class

BigPipeTest
Tests BigPipe's no-JS detection & response delivery (with and without JS).

Namespace

Drupal\Tests\big_pipe\Functional

Code

protected function assertSetsEqual(array $a, array $b) : void {
  $result = count($a) == count($b) && !array_diff_assoc($a, $b);
}