From dd980724d9ee33fa2309bcb74fe208b78e23b03a Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 1 Sep 2015 12:04:17 +0100 Subject: [PATCH] Refactor loggedAsAdminPlaformUi function name --- Features/Context/SubContext/Authentication.php | 2 +- Features/Context/SubContext/Fields.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Features/Context/SubContext/Authentication.php b/Features/Context/SubContext/Authentication.php index b2a20e178..105ff64c6 100644 --- a/Features/Context/SubContext/Authentication.php +++ b/Features/Context/SubContext/Authentication.php @@ -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); } diff --git a/Features/Context/SubContext/Fields.php b/Features/Context/SubContext/Fields.php index aa67e542b..bc41449b6 100644 --- a/Features/Context/SubContext/Fields.php +++ b/Features/Context/SubContext/Fields.php @@ -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'); @@ -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'); @@ -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');