You are here

public function Drupal6SqlBaseTest::testGetSystemData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\d6

Code

public function testGetSystemData() {
  $system_data = $this->base
    ->getSystemData();

  // Should be 1 theme and 2 modules.
  $this
    ->assertEquals(1, count($system_data['theme']));
  $this
    ->assertEquals(2, count($system_data['module']));

  // Calling again should be identical.
  $this
    ->assertSame($system_data, $this->base
    ->getSystemData());
}