public function Drupal6SqlBaseTest::testGetSystemData in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::testGetSystemData()
Tests for Drupal6SqlBase::getSystemData().
File
- core/
modules/ migrate_drupal/ tests/ src/ Unit/ source/ d6/ Drupal6SqlBaseTest.php, line 82 - Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest.
Class
- Drupal6SqlBaseTest
- Tests the D6 SQL base class.
Namespace
Drupal\Tests\migrate_drupal\Unit\source\d6Code
public function testGetSystemData() {
$system_data = $this->base
->getSystemData();
// Should be 1 theme and 2 modules.
$this
->assertCount(1, $system_data['theme']);
$this
->assertCount(2, $system_data['module']);
// Calling again should be identical.
$this
->assertSame($system_data, $this->base
->getSystemData());
}