ActionTest.php

Same filename in this branch
  1. 9 core/modules/jsonapi/tests/src/Functional/ActionTest.php
  2. 9 core/modules/system/tests/src/Kernel/Action/ActionTest.php
  3. 9 core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php
Same filename and directory in other branches
  1. 8.9.x core/modules/action/tests/src/Kernel/Plugin/migrate/source/ActionTest.php
  2. 10 core/modules/jsonapi/tests/src/Functional/ActionTest.php
  3. 11.x core/modules/jsonapi/tests/src/Functional/ActionTest.php
  4. 11.x core/modules/system/tests/src/Kernel/Action/ActionTest.php
  5. 11.x core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php
  6. 10 core/modules/system/tests/src/Kernel/Action/ActionTest.php
  7. 10 core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php
  8. 8.9.x core/modules/jsonapi/tests/src/Functional/ActionTest.php
  9. 8.9.x core/modules/system/tests/src/Kernel/Action/ActionTest.php
  10. main core/modules/jsonapi/tests/src/Functional/ActionTest.php
  11. main core/modules/system/tests/src/Kernel/Action/ActionTest.php
  12. main core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php

Namespace

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

File

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

View source
<?php

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

use Drupal\action\Plugin\migrate\source\Action;
use Drupal\Tests\migrate\Unit\MigrateTestCase;

/**
 * Tests actions source plugin.
 *
 * @covers \Drupal\action\Plugin\migrate\source\Action
 * @group legacy
 */
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());
  }

}

Classes

Title Deprecated Summary
ActionTest Tests actions source plugin.

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