class ActionTest
Same name in this branch
- 9 core/modules/jsonapi/tests/src/Functional/ActionTest.php \Drupal\Tests\jsonapi\Functional\ActionTest
- 9 core/modules/system/tests/src/Kernel/Action/ActionTest.php \Drupal\Tests\system\Kernel\Action\ActionTest
- 9 core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php \Drupal\Tests\system\Kernel\Plugin\migrate\source\ActionTest
Same name and namespace in other branches
- 11.x core/modules/jsonapi/tests/src/Functional/ActionTest.php \Drupal\Tests\jsonapi\Functional\ActionTest
- 11.x core/modules/system/tests/src/Kernel/Action/ActionTest.php \Drupal\Tests\system\Kernel\Action\ActionTest
- 11.x core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php \Drupal\Tests\system\Kernel\Plugin\migrate\source\ActionTest
- 10 core/modules/jsonapi/tests/src/Functional/ActionTest.php \Drupal\Tests\jsonapi\Functional\ActionTest
- 10 core/modules/system/tests/src/Kernel/Action/ActionTest.php \Drupal\Tests\system\Kernel\Action\ActionTest
- 10 core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php \Drupal\Tests\system\Kernel\Plugin\migrate\source\ActionTest
- 8.9.x core/modules/jsonapi/tests/src/Functional/ActionTest.php \Drupal\Tests\jsonapi\Functional\ActionTest
- 8.9.x core/modules/action/tests/src/Kernel/Plugin/migrate/source/ActionTest.php \Drupal\Tests\action\Kernel\Plugin\migrate\source\ActionTest
- 8.9.x core/modules/system/tests/src/Kernel/Action/ActionTest.php \Drupal\Tests\system\Kernel\Action\ActionTest
Tests actions source plugin.
@covers \Drupal\action\Plugin\migrate\source\Action
@group legacy
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\migrate\Unit\MigrateTestCase extends \Drupal\Tests\UnitTestCase
- class \Drupal\Tests\action\Unit\Plugin\migrate\source\ActionTest extends \Drupal\Tests\migrate\Unit\MigrateTestCase
- class \Drupal\Tests\migrate\Unit\MigrateTestCase extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of ActionTest
File
-
core/
modules/ action/ tests/ src/ Unit/ Plugin/ migrate/ source/ ActionTest.php, line 14
Namespace
Drupal\Tests\action\Unit\Plugin\migrate\sourceView source
class ActionTest extends MigrateTestCase {
/**
* Tests deprecation of Action plugin.
*/
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.