function TestSiteApplicationTest::testInstallWithFileWithNoClass
Same name in this branch
- 11.x core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::testInstallWithFileWithNoClass()
Same name in other branches
- 9 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::testInstallWithFileWithNoClass()
- 8.9.x core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::testInstallWithFileWithNoClass()
- 10 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::testInstallWithFileWithNoClass()
@coversNothing
File
-
core/
tests/ Drupal/ KernelTests/ Scripts/ TestSiteApplicationTest.php, line 65
Class
- TestSiteApplicationTest
- Tests core/scripts/test-site.php.
Namespace
Drupal\KernelTests\ScriptsCode
public function testInstallWithFileWithNoClass() : void {
$command_line = $this->php . ' core/scripts/test-site.php install --setup-file core/tests/fixtures/empty_file.php.module --db-url "' . getenv('SIMPLETEST_DB') . '"';
$process = Process::fromShellCommandline($command_line, $this->root);
$process->run();
$this->assertStringContainsString('The file core/tests/fixtures/empty_file.php.module does not contain a class', $process->getErrorOutput());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.