function UnitTestCaseTest::testAssertArrayEquals

Tests deprecation of the ::assertArrayEquals method.

@group legacy

File

core/tests/Drupal/Tests/UnitTestCaseTest.php, line 17

Class

UnitTestCaseTest
Tests for the UnitTestCase class.

Namespace

Drupal\Tests

Code

public function testAssertArrayEquals() {
    $this->expectDeprecation('Drupal\\Tests\\UnitTestCase::assertArrayEquals() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use ::assertEquals(), ::assertEqualsCanonicalizing(), or ::assertSame() instead. See https://www.drupal.org/node/3136304');
    $this->assertArrayEquals([], []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.