function MigrateSkipProcessExceptionTest::testDeprecation
Same name in other branches
- 11.x core/modules/migrate/tests/src/Unit/Exception/MigrateSkipProcessExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\MigrateSkipProcessExceptionTest::testDeprecation()
Tests a deprecation error is triggered on throw.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ Exception/ MigrateSkipProcessExceptionTest.php, line 20
Class
- MigrateSkipProcessExceptionTest
- Tests deprecation error on MigrateSkipProcessException.
Namespace
Drupal\Tests\migrate\Unit\ExceptionCode
public function testDeprecation() : void {
$this->expectException(MigrateSkipProcessException::class);
$this->expectDeprecation("Unsilenced deprecation: " . MigrateSkipProcessException::class . " is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Return TRUE from a process plugin's isPipelineStopped() method to halt further processing on a pipeline. See https://www.drupal.org/node/3414511");
throw new MigrateSkipProcessException();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.