You are here

public function FilterFormatPermissionTest::testLegacyConstruct in Drupal 8

Tests legacy plugin usage.

@group legacy

@expectedDeprecation Passing a migration process plugin as the fourth argument to Drupal\filter\Plugin\migrate\process\d6\FilterFormatPermission::__construct is deprecated in drupal:8.8.0 and will throw an error in drupal:9.0.0. Pass the migrate.lookup service instead. See https://www.drupal.org/node/3047268

File

core/modules/filter/tests/src/Kernel/Migrate/d6/FilterFormatPermissionTest.php, line 39

Class

FilterFormatPermissionTest
Tests conversion of format serial to string id in permission name.

Namespace

Drupal\Tests\filter\Kernel\Migrate\d6

Code

public function testLegacyConstruct() {
  $process_plugin = $this
    ->prophesize(MigrateProcessInterface::class)
    ->reveal();
  $plugin = new FilterFormatPermission([], '', [], $this
    ->prophesize(MigrationInterface::class)
    ->reveal(), $process_plugin);
  $this
    ->assertSame($process_plugin, $this
    ->readAttribute($plugin, 'migrationPlugin'));
}