Skip to content

Commit

Permalink
[bugfix] test skipping code was lost during new base test class creation
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Nov 11, 2024
1 parent ba588d6 commit 870b5fb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Custom/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,16 @@ protected function getConfig(): WebdriverClassicConfig
{
return WebdriverClassicConfig::getInstance();
}

/**
* @before
*
* @return void
*/
protected function checkSkippedTest()
{
if (null !== $message = self::getConfig()->skipMessage(get_class($this), $this->getName(false))) {
$this->markTestSkipped($message);
}
}
}

0 comments on commit 870b5fb

Please sign in to comment.