Skip to content

Commit

Permalink
Merge pull request ezsystems#309 from miguelcleverti/loggedAsAdminFIx
Browse files Browse the repository at this point in the history
Refactor loggedAsAdminPlaformUi function name
  • Loading branch information
andrerom committed Sep 3, 2015
2 parents 71bf547 + dd98072 commit 69dfeea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Features/Context/SubContext/Authentication.php
Expand Up @@ -53,7 +53,7 @@ public function goToPlatformUiAndLogIn($username, $password)
* @Given I am logged in as admin on PlatformUI
* @Given I am logged in as an Editor in PlatformUI
*/
public function loggedAsAdminPlatformUi()
public function loggedAsUserPlatformUi()
{
$this->goToPlatformUiAndLogIn($this->user, $this->password);
}
Expand Down
6 changes: 3 additions & 3 deletions Features/Context/SubContext/Fields.php
Expand Up @@ -23,7 +23,7 @@ public function createAContentOfThisType()
$fieldManager->setFieldContentState(FieldType::CONTENT_TYPE_PUBLISHED);
$type = $fieldManager->getThisContentTypeName('eng-GB');

$this->loggedAsAdminPlatformUi();
$this->loggedAsUserPlatformUi();
$this->clickNavigationZone('Platform');
$this->waitForLoadings();
$this->clickNavigationItem('Content structure');
Expand All @@ -44,7 +44,7 @@ public function editThisContent()
$fieldManager->setFieldContentState(FieldType::CONTENT_PUBLISHED);
$name = $fieldManager->getThisContentName('eng-GB');

$this->loggedAsAdminPlatformUi();
$this->loggedAsUserPlatformUi();
$this->clickNavigationZone('Platform');
$this->waitForLoadings();
$this->clickNavigationItem('Content structure');
Expand All @@ -65,7 +65,7 @@ public function viewThisContent()
$fieldManager->setFieldContentState(FieldType::CONTENT_PUBLISHED);
$name = $fieldManager->getThisContentName('eng-GB');

$this->loggedAsAdminPlatformUi();
$this->loggedAsUserPlatformUi();
$this->clickNavigationZone('Platform');
$this->waitForLoadings();
$this->clickNavigationItem('Content structure');
Expand Down

0 comments on commit 69dfeea

Please sign in to comment.