function MigrateActionsTest::assertEntity
Asserts various aspects of an Action entity.
@internal
Parameters
string $id: The expected Action ID.
string $label: The expected Action label.
string $type: The expected Action type.
array $configuration: The expected Action configuration.
1 call to MigrateActionsTest::assertEntity()
- MigrateActionsTest::testActions in core/modules/ system/ tests/ src/ Kernel/ Migrate/ d6/ MigrateActionsTest.php 
- Tests Drupal 6 action migration to Drupal 8.
File
- 
              core/modules/ system/ tests/ src/ Kernel/ Migrate/ d6/ MigrateActionsTest.php, line 63 
Class
- MigrateActionsTest
- Tests migration of action items.
Namespace
Drupal\Tests\system\Kernel\Migrate\d6Code
protected function assertEntity(string $id, string $label, string $type, array $configuration) : void {
  $action = Action::load($id);
  $this->assertInstanceOf(Action::class, $action);
  /** @var \Drupal\system\Entity\Action $action */
  $this->assertSame($id, $action->id());
  $this->assertSame($label, $action->label());
  $this->assertSame($type, $action->getType());
  $this->assertSame($configuration, $action->get('configuration'));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
