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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • QA tracked issues
    • 5.4-dev
    • Misc
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: