function MigrateActionsTest::testActions
Same name in this branch
- 11.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateActionsTest::testActions()
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateActionsTest::testActions()
- 9 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateActionsTest::testActions()
- 8.9.x core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php \Drupal\Tests\action\Kernel\Migrate\d6\MigrateActionsTest::testActions()
- 8.9.x core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php \Drupal\Tests\action\Kernel\Migrate\d7\MigrateActionsTest::testActions()
- 10 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateActionsTest::testActions()
- 10 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateActionsTest::testActions()
- 10 core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php \Drupal\Tests\action\Kernel\Migrate\d6\MigrateActionsTest::testActions()
- 10 core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php \Drupal\Tests\action\Kernel\Migrate\d7\MigrateActionsTest::testActions()
Tests Drupal 7 action migration to Drupal 8.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Migrate/ d7/ MigrateActionsTest.php, line 33
Class
- MigrateActionsTest
- Tests migration of action items.
Namespace
Drupal\Tests\system\Kernel\Migrate\d7Code
public function testActions() : void {
// Test default actions.
$this->assertEntity('node_publish_action', 'Publish content', 'node', []);
$this->assertEntity('node_make_sticky_action', 'Make content sticky', 'node', []);
$this->assertEntity('user_block_user_action', 'Block current user', 'user', []);
$this->assertEntity('comment_publish_action', 'Publish comment', 'comment', []);
// Test advanced actions.
$this->assertEntity('display_a_message_to_the_user', 'Display a message to the user', 'system', [
"message" => "Drupal migration test",
]);
$this->assertEntity('send_e_mail', 'Send e-mail', 'system', [
"recipient" => "test@example.com",
"subject" => "Drupal migration test",
"message" => "Drupal migration test",
]);
$this->assertEntity('redirect_to_url', 'Redirect to URL', 'system', [
"url" => "https://www.drupal.org",
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.