public function TestSiteApplicationTest::testTearDownDbPrefixValidation in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::testTearDownDbPrefixValidation()
- 10 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::testTearDownDbPrefixValidation()
@coversNothing
File
- core/
tests/ Drupal/ Tests/ Scripts/ TestSiteApplicationTest.php, line 245
Class
- TestSiteApplicationTest
- Tests core/scripts/test-site.php.
Namespace
Drupal\Tests\ScriptsCode
public function testTearDownDbPrefixValidation() {
$command_line = $this->php . ' core/scripts/test-site.php tear-down not-a-valid-prefix';
$process = new Process($command_line, $this->root);
$process
->setTimeout(500);
$process
->run();
$this
->assertSame(1, $process
->getExitCode());
$this
->assertStringContainsString('Invalid database prefix: not-a-valid-prefix', $process
->getErrorOutput());
}