protected function MigrateNodeBuilderTest::assertEntity in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/node/src/Tests/Migrate/d6/MigrateNodeBuilderTest.php \Drupal\node\Tests\Migrate\d6\MigrateNodeBuilderTest::assertEntity()
Asserts various aspects of a migration entity.
Parameters
string $id: The migration ID.
string $label: The label.
1 call to MigrateNodeBuilderTest::assertEntity()
- MigrateNodeBuilderTest::testCreateMigrations in core/
modules/ node/ src/ Tests/ Migrate/ d6/ MigrateNodeBuilderTest.php - Tests creating migrations from a template, using a builder plugin.
File
- core/
modules/ node/ src/ Tests/ Migrate/ d6/ MigrateNodeBuilderTest.php, line 32 - Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeBuilderTest.
Class
- MigrateNodeBuilderTest
- @group migrate_drupal_6
Namespace
Drupal\node\Tests\Migrate\d6Code
protected function assertEntity($id, $label) {
$migration = $this->builtMigrations[$id];
$this
->assertTrue($migration instanceof Migration);
$this
->assertIdentical($id, $migration
->id());
$this
->assertEqual($label, $migration
->label());
}