function DrupalSqlBaseTest::testSourceDatabaseError
Tests source database error.
@legacy-covers ::checkRequirements
File
-
core/
modules/ migrate_drupal/ tests/ src/ Unit/ source/ DrupalSqlBaseTest.php, line 113
Class
Namespace
Drupal\Tests\migrate_drupal\Unit\sourceCode
public function testSourceDatabaseError() : void {
$plugin = new TestDrupalSqlBase([], 'test', $this->pluginDefinition, $this->getMigration(), $this->state, $this->entityTypeManager);
$this->expectException(RequirementsException::class);
$this->expectExceptionMessage('No database connection configured for source plugin test');
$plugin->checkRequirements();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.