diff --git a/tests/codeception/_support/Step/Acceptance/Administrator/Category.php b/tests/codeception/_support/Step/Acceptance/Administrator/Category.php index 192552cc0d..925155ceb9 100644 --- a/tests/codeception/_support/Step/Acceptance/Administrator/Category.php +++ b/tests/codeception/_support/Step/Acceptance/Administrator/Category.php @@ -200,7 +200,9 @@ public function iSetTheTitleAsA($title) */ public function iHaveACategoryWithTitleWhichNeedsToBeUnpublish($title) { - $this->categoryManagerPage->haveItemUsingSearch($title); + $I = $this; + + $I->categoryManagerPage->haveItemUsingSearch($title); } /** @@ -248,7 +250,9 @@ public function iShouldSeeTheCategoryIsNowUnpublished() */ public function iHaveACategoryWithTitleWhichNeedsToBeTrash($title) { - $this->categoryManagerPage->haveItemUsingSearch($title); + $I = $this; + + $I->categoryManagerPage->haveItemUsingSearch($title); } /** @@ -337,7 +341,9 @@ public function iShouldSeeThe($error) */ public function iCreateANewArticleWithContentAsA($title, $content) { - $this->articleManagerPage->fillContentCreateForm($title, $content); + $I = $this; + + $I->articleManagerPage->fillContentCreateForm($title, $content); } /** diff --git a/tests/codeception/_support/Step/Acceptance/Administrator/Content.php b/tests/codeception/_support/Step/Acceptance/Administrator/Content.php index 9e786e68bb..a9f650c860 100644 --- a/tests/codeception/_support/Step/Acceptance/Administrator/Content.php +++ b/tests/codeception/_support/Step/Acceptance/Administrator/Content.php @@ -51,7 +51,9 @@ public function thereIsAAddContentLink() */ public function iCreateNewContent($title, $content) { - $this->articleManagerPage->fillContentCreateForm($title, $content); + $I = $this; + + $I->articleManagerPage->fillContentCreateForm($title, $content); } /** @@ -101,7 +103,9 @@ public function seeTheArticleIsCreated($article) */ public function iSearchAndSelectContentArticleWithTitle($title) { - $this->articleManagerPage->haveItemUsingSearch($title); + $I = $this; + + $I->articleManagerPage->haveItemUsingSearch($title); } /** @@ -220,7 +224,9 @@ public function iShouldSeeTheArticleAsTheAccessLevel($accessLevel) */ public function iHaveArticleWithName($title) { - $this->articleManagerPage->haveItemUsingSearch($title); + $I = $this; + + $I->articleManagerPage->haveItemUsingSearch($title); } /** @@ -268,7 +274,9 @@ public function iShouldSeeTheArticleIsNowUnpublished() */ public function iHaveContentArticleWhichNeedsToBeTrash($title) { - $this->articleManagerPage->haveItemUsingSearch($title); + $I = $this; + + $I->articleManagerPage->haveItemUsingSearch($title); } /** diff --git a/tests/codeception/_support/Step/Acceptance/Administrator/User.php b/tests/codeception/_support/Step/Acceptance/Administrator/User.php index 73a5f3eab0..92d01b2a3e 100644 --- a/tests/codeception/_support/Step/Acceptance/Administrator/User.php +++ b/tests/codeception/_support/Step/Acceptance/Administrator/User.php @@ -59,7 +59,9 @@ public function thereIsAAddUserLink() */ public function iCreateNewUser($name, $username, $password, $email) { - $this->userManagerPage->fillUserForm($name, $username, $password, $email); + $I = $this; + + $I->userManagerPage->fillUserForm($name, $username, $password, $email); } /** @@ -151,7 +153,9 @@ public function iAssignedNameAndUserGroup($name, $userGroup) */ public function iHaveAUserWithUserName($username) { - $this->userManagerPage->haveItemUsingSearch($username); + $I = $this; + + $I->userManagerPage->haveItemUsingSearch($username); } /** @@ -183,7 +187,9 @@ public function iBlockTheUser() */ public function iHaveABlockedUserWithUserName($username) { - $this->userManagerPage->haveItemUsingSearch($username); + $I = $this; + + $I->userManagerPage->haveItemUsingSearch($username); } /** diff --git a/tests/codeception/_support/Step/Acceptance/Site/UsersFrontend.php b/tests/codeception/_support/Step/Acceptance/Site/UsersFrontend.php index 71078cf0f6..14f4c0964c 100644 --- a/tests/codeception/_support/Step/Acceptance/Site/UsersFrontend.php +++ b/tests/codeception/_support/Step/Acceptance/Site/UsersFrontend.php @@ -474,7 +474,9 @@ public function iChangeTheNameTo($name) */ public function iSearchTheUserWithName($name) { - $this->adminPage->search($name); + $I = $this; + + $I->adminPage->search($name); } /**