You are here

public function MigrateSqlSourceTestCase::testRetrieval in Zircon Profile 8.0

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

Test the source returns the same rows as expected.

File

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

Class

MigrateSqlSourceTestCase
Base class for Migrate module source unit tests.

Namespace

Drupal\Tests\migrate\Unit

Code

public function testRetrieval() {
  $this
    ->assertInstanceOf(SelectInterface::class, $this->source
    ->query());
  $this
    ->queryResultTest($this->source, $this->expectedResults);
}