public function MigrateSqlSourceTestCase::testSourceCount in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase.php \Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase::testSourceCount()
Test the source returns the row count expected.
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateSqlSourceTestCase.php, line 124 - Contains \Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase.
Class
- MigrateSqlSourceTestCase
- Base class for Migrate module source unit tests.
Namespace
Drupal\Tests\migrate\UnitCode
public function testSourceCount() {
$count = $this->source
->count();
$this
->assertTrue(is_numeric($count));
$this
->assertEquals($count, $this->expectedCount);
}