function Drupal6SqlBaseTest::testDrupal6ModuleExists

Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::testDrupal6ModuleExists()
  2. 8.9.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::testDrupal6ModuleExists()
  3. 10 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::testDrupal6ModuleExists()

Tests for Drupal6SqlBase::moduleExists().

File

core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 100

Class

Drupal6SqlBaseTest
Tests the D6 SQL base class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

public function testDrupal6ModuleExists() : void {
    // This module should exist.
    $this->assertTrue($this->base
        ->moduleExistsWrapper('module1'));
    // These modules should not exist.
    $this->assertFalse($this->base
        ->moduleExistsWrapper('module2'));
    $this->assertFalse($this->base
        ->moduleExistsWrapper('module3'));
}

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