Test filesverification/TestModule/Test/HookActionsTest.xml
") */ class HookActionsTestCest { /** * @var bool */ private $isSuccess = false; /** * @param AcceptanceTester $I * @throws \Exception */ public function _before(AcceptanceTester $I) { } /** * @param AcceptanceTester $I * @throws \Exception */ public function _after(AcceptanceTester $I) { $I->comment('[START AFTER HOOK]'); $I->deleteEntity("sampleCreateForAfter", "hook"); // stepKey: sampleDeleteAfter $I->comment('[END AFTER HOOK]'); if ($this->isSuccess) { unlink(__FILE__); } } /** * @param AcceptanceTester $I * @throws \Exception */ public function _failed(AcceptanceTester $I) { $I->saveScreenshot(); // stepKey: saveScreenshot } /** * @Features({"TestModule"}) * @param AcceptanceTester $I * @return void * @throws \Exception */ public function HookActionsTest(AcceptanceTester $I) { } public function _passed(AcceptanceTester $I) { // Test passed successfully. $this->isSuccess = true; } }