You are here

public function MigrateSqlSourceTestCase::testSourceId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase.php \Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase::testSourceId()

Test the source defines a valid ID.

File

core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase.php, line 133
Contains \Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase.

Class

MigrateSqlSourceTestCase
Base class for Migrate module source unit tests.

Namespace

Drupal\Tests\migrate\Unit

Code

public function testSourceId() {
  $this
    ->assertNotEmpty($this->source
    ->getIds());
}