You are here

protected function TestSiteReleaseLocksCommand::execute in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php \Drupal\TestSite\Commands\TestSiteReleaseLocksCommand::execute()
  2. 9 core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php \Drupal\TestSite\Commands\TestSiteReleaseLocksCommand::execute()

File

core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php, line 32

Class

TestSiteReleaseLocksCommand
Command to release all test site database prefix locks.

Namespace

Drupal\TestSite\Commands

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
  TestDatabase::releaseAllTestLocks();
  $output
    ->writeln('<info>Successfully released all the test database locks</info>');
  return 0;
}