function TestSiteReleaseLocksCommand::execute
Same name in other branches
- 9 core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php \Drupal\TestSite\Commands\TestSiteReleaseLocksCommand::execute()
- 8.9.x core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php \Drupal\TestSite\Commands\TestSiteReleaseLocksCommand::execute()
- 11.x core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php \Drupal\TestSite\Commands\TestSiteReleaseLocksCommand::execute()
File
-
core/
tests/ Drupal/ TestSite/ Commands/ TestSiteReleaseLocksCommand.php, line 34
Class
- TestSiteReleaseLocksCommand
- Command to release all test site database prefix locks.
Namespace
Drupal\TestSite\CommandsCode
protected function execute(InputInterface $input, OutputInterface $output) : int {
$root = dirname(__DIR__, 5);
chdir($root);
TestDatabase::releaseAllTestLocks();
$output->writeln('<info>Successfully released all the test database locks</info>');
return 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.