Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ public function iSetTheTitleAsA($title)
*/
public function iHaveACategoryWithTitleWhichNeedsToBeUnpublish($title)
{
$this->categoryManagerPage->haveItemUsingSearch($title);
$I = $this;

$I->categoryManagerPage->haveItemUsingSearch($title);
}

/**
Expand Down Expand Up @@ -248,7 +250,9 @@ public function iShouldSeeTheCategoryIsNowUnpublished()
*/
public function iHaveACategoryWithTitleWhichNeedsToBeTrash($title)
{
$this->categoryManagerPage->haveItemUsingSearch($title);
$I = $this;

$I->categoryManagerPage->haveItemUsingSearch($title);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function thereIsAAddContentLink()
*/
public function iCreateNewContent($title, $content)
{
$this->articleManagerPage->fillContentCreateForm($title, $content);
$I = $this;

$I->articleManagerPage->fillContentCreateForm($title, $content);
}

/**
Expand Down Expand Up @@ -101,7 +103,9 @@ public function seeTheArticleIsCreated($article)
*/
public function iSearchAndSelectContentArticleWithTitle($title)
{
$this->articleManagerPage->haveItemUsingSearch($title);
$I = $this;

$I->articleManagerPage->haveItemUsingSearch($title);
}

/**
Expand Down Expand Up @@ -220,7 +224,9 @@ public function iShouldSeeTheArticleAsTheAccessLevel($accessLevel)
*/
public function iHaveArticleWithName($title)
{
$this->articleManagerPage->haveItemUsingSearch($title);
$I = $this;

$I->articleManagerPage->haveItemUsingSearch($title);
}

/**
Expand Down Expand Up @@ -268,7 +274,9 @@ public function iShouldSeeTheArticleIsNowUnpublished()
*/
public function iHaveContentArticleWhichNeedsToBeTrash($title)
{
$this->articleManagerPage->haveItemUsingSearch($title);
$I = $this;

$I->articleManagerPage->haveItemUsingSearch($title);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -151,7 +153,9 @@ public function iAssignedNameAndUserGroup($name, $userGroup)
*/
public function iHaveAUserWithUserName($username)
{
$this->userManagerPage->haveItemUsingSearch($username);
$I = $this;

$I->userManagerPage->haveItemUsingSearch($username);
}

/**
Expand Down Expand Up @@ -183,7 +187,9 @@ public function iBlockTheUser()
*/
public function iHaveABlockedUserWithUserName($username)
{
$this->userManagerPage->haveItemUsingSearch($username);
$I = $this;

$I->userManagerPage->haveItemUsingSearch($username);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ public function iChangeTheNameTo($name)
*/
public function iSearchTheUserWithName($name)
{
$this->adminPage->search($name);
$I = $this;

$I->adminPage->search($name);
}

/**
Expand Down