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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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'] );
          }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: