function MigrateSqlSourceTestCase::testSourceId

Tests the source defines a valid ID.

File

core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase.php, line 159

Class

MigrateSqlSourceTestCase
Base class for Migrate module source unit tests.

Namespace

Drupal\Tests\migrate\Unit

Code

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

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