Test filesverification/TestModule/Test/PersistenceCustomFieldsTest.xml
") */ class PersistenceCustomFieldsTestCest { /** * @var bool */ private $isSuccess = false; /** * @param AcceptanceTester $I * @throws \Exception */ public function _before(AcceptanceTester $I) { $I->comment('[START BEFORE HOOK]'); $createData1Fields['firstname'] = "Mac"; $createData1Fields['lastname'] = "Bar"; $I->createEntity("createData1", "hook", "DefaultPerson", [], $createData1Fields); // stepKey: createData1 $I->comment('[END BEFORE HOOK]'); } /** * @param AcceptanceTester $I * @throws \Exception */ public function _after(AcceptanceTester $I) { if ($this->isSuccess) { unlink(__FILE__); } } /** * @Features({"TestModule"}) * @param AcceptanceTester $I * @return void * @throws \Exception */ public function PersistenceCustomFieldsTest(AcceptanceTester $I) { $createdData3Fields['firstname'] = "Takeshi"; $createdData3Fields['lastname'] = "Kovacs"; $I->createEntity("createdData3", "test", "UniquePerson", ["createdData"], $createdData3Fields); // stepKey: createdData3 } public function _passed(AcceptanceTester $I) { // Test passed successfully. $this->isSuccess = true; } }