X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTestSite%2FCommands%2FTestSiteReleaseLocksCommand.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTestSite%2FCommands%2FTestSiteReleaseLocksCommand.php;h=5c64df38e07cc9dcb470b52472aa6a2b9076aba2;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php b/web/core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php new file mode 100644 index 000000000..5c64df38e --- /dev/null +++ b/web/core/tests/Drupal/TestSite/Commands/TestSiteReleaseLocksCommand.php @@ -0,0 +1,37 @@ +setName('release-locks') + ->setDescription('Releases all test site locks') + ->setHelp('The locks ensure test site database prefixes are not reused.'); + } + + /** + * {@inheritdoc} + */ + protected function execute(InputInterface $input, OutputInterface $output) { + TestDatabase::releaseAllTestLocks(); + $output->writeln('Successfully released all the test database locks'); + } + +}