Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23572

(BDD) "Given I am logged (in) as a(n) :role" always log as administrator

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.4-dev
    • Fix Version/s: QA tracked issues
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      php: 5.4

      Description

      Hi,

      on (...)/behatbundle/Context/Browser/SubContext/Authentication.php, the "Given I am logged (in) as a .role" ignore the :role parameter and always log as administrator

      {
          /**
           * @Given I am logged (in) as a(n) :role
           * @Given I have :role permissions
           */
          public function iAmLoggedInAsAn( $role )
          {
              $credentials = $this->getCredentialsFor( 'administrator' );
              $this->iAmLoggedInAsWithPassword( $credentials['login'], $credentials['password'] );
          }
      

        Issue Links

          Activity

          Show
          Joao Inacio (Inactive) added a comment - PR: https://github.com/ezsystems/BehatBundle/pull/17
          Hide
          Paulo Nunes (Inactive) added a comment -

          Used by QA, so no no QA tests needed in this one.

          Show
          Paulo Nunes (Inactive) added a comment - Used by QA, so no no QA tests needed in this one.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: