function DiffOpTest::testReverse

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Diff/Engine/DiffOpTest.php \Drupal\Tests\Component\Diff\Engine\DiffOpTest::testReverse()
  2. 8.9.x core/tests/Drupal/Tests/Component/Diff/Engine/DiffOpTest.php \Drupal\Tests\Component\Diff\Engine\DiffOpTest::testReverse()

DiffOp::reverse() always throws an error.

@covers ::reverse

File

core/tests/Drupal/Tests/Component/Diff/Engine/DiffOpTest.php, line 34

Class

DiffOpTest
Test DiffOp base class.

Namespace

Drupal\Tests\Component\Diff\Engine

Code

public function testReverse() : void {
    $this->expectDeprecation('Drupal\\Component\\Diff\\Engine\\DiffOp::reverse() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942');
    $this->expectError();
    $op = new DiffOp();
    $result = $op->reverse();
}

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