Loading core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php +0 −6 Original line number Diff line number Diff line Loading @@ -87,10 +87,6 @@ public function testInstallWithFileWithNoClass() { public function testInstallWithNonSetupClass() { $this->markTestIncomplete('Fix this test in https://www.drupal.org/project/drupal/issues/2962157.'); // Create a connection to the DB configured in SIMPLETEST_DB. $connection = Database::getConnection('default', $this->addTestDatabase('')); $table_count = count($connection->schema()->findTables('%')); // Use __FILE__ to test absolute paths. $command_line = $this->php . ' core/scripts/test-site.php install --setup-file "' . __FILE__ . '" --db-url "' . getenv('SIMPLETEST_DB') . '"'; $process = Process::fromShellCommandline($command_line, $this->root, ['COLUMNS' => PHP_INT_MAX]); Loading @@ -98,8 +94,6 @@ public function testInstallWithNonSetupClass() { $this->assertStringContainsString('The class Drupal\Tests\Scripts\TestSiteApplicationTest contained in', $process->getErrorOutput()); $this->assertStringContainsString('needs to implement \Drupal\TestSite\TestSetupInterface', $process->getErrorOutput()); $this->assertSame(1, $process->getExitCode()); $this->assertCount($table_count, $connection->schema()->findTables('%'), 'No additional tables created in the database'); } /** Loading Loading
core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php +0 −6 Original line number Diff line number Diff line Loading @@ -87,10 +87,6 @@ public function testInstallWithFileWithNoClass() { public function testInstallWithNonSetupClass() { $this->markTestIncomplete('Fix this test in https://www.drupal.org/project/drupal/issues/2962157.'); // Create a connection to the DB configured in SIMPLETEST_DB. $connection = Database::getConnection('default', $this->addTestDatabase('')); $table_count = count($connection->schema()->findTables('%')); // Use __FILE__ to test absolute paths. $command_line = $this->php . ' core/scripts/test-site.php install --setup-file "' . __FILE__ . '" --db-url "' . getenv('SIMPLETEST_DB') . '"'; $process = Process::fromShellCommandline($command_line, $this->root, ['COLUMNS' => PHP_INT_MAX]); Loading @@ -98,8 +94,6 @@ public function testInstallWithNonSetupClass() { $this->assertStringContainsString('The class Drupal\Tests\Scripts\TestSiteApplicationTest contained in', $process->getErrorOutput()); $this->assertStringContainsString('needs to implement \Drupal\TestSite\TestSetupInterface', $process->getErrorOutput()); $this->assertSame(1, $process->getExitCode()); $this->assertCount($table_count, $connection->schema()->findTables('%'), 'No additional tables created in the database'); } /** Loading