function ActionTest::testDeprecatedPlugin

Tests deprecation of Action plugin.

File

core/modules/action/tests/src/Unit/Plugin/migrate/source/ActionTest.php, line 19

Class

ActionTest
Tests actions source plugin.

Namespace

Drupal\Tests\action\Unit\Plugin\migrate\source

Code

public function testDeprecatedPlugin() {
    $this->expectDeprecation("The Drupal\\action\\Plugin\\migrate\\source\\Action is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Use \\Drupal\\system\\Plugin\\migrate\\source\\Action instead. See https://www.drupal.org/node/3110401");
    new Action([], 'action', [], $this->prophesize('Drupal\\migrate\\Plugin\\MigrationInterface')
        ->reveal(), $this->prophesize('Drupal\\Core\\State\\StateInterface')
        ->reveal(), $this->prophesize('Drupal\\Core\\Entity\\EntityTypeManagerInterface')
        ->reveal());
}

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