PHP Class Sylius\Behat\Context\Ui\Admin\ImpersonatingCustomersContext

Author: Jan Góralski ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\Customer\ShowPageInterface $customerShowPage, Sylius\Behat\Page\Admin\DashboardPageInterface $dashboardPage, Sylius\Behat\Page\Shop\HomePageInterface $homePage )
iAmImpersonatingCustomer ( Sylius\Component\Customer\Model\CustomerInterface $customer )
iLogOut ( )
iLogOutFromMyAdminAccount ( )
iShouldBeAbleToAccessAdministrationDashboard ( )
iShouldBeLoggedInAs ( $fullName )
iShouldBeUnableToImpersonateThem ( )
iShouldNotBeLoggedInAs ( $fullName )
iShouldSeeThatImpersonatingWasSuccessful ( $email )
iTryToImpersonateThem ( )
iVisitTheStore ( )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Page\Admin\Customer\ShowPageInterface $customerShowPage, Sylius\Behat\Page\Admin\DashboardPageInterface $dashboardPage, Sylius\Behat\Page\Shop\HomePageInterface $homePage )
$customerShowPage Sylius\Behat\Page\Admin\Customer\ShowPageInterface
$dashboardPage Sylius\Behat\Page\Admin\DashboardPageInterface
$homePage Sylius\Behat\Page\Shop\HomePageInterface

iAmImpersonatingCustomer() public method

public iAmImpersonatingCustomer ( Sylius\Component\Customer\Model\CustomerInterface $customer )
$customer Sylius\Component\Customer\Model\CustomerInterface

iLogOut() public method

public iLogOut ( )

iLogOutFromMyAdminAccount() public method

iShouldBeAbleToAccessAdministrationDashboard() public method

iShouldBeLoggedInAs() public method

public iShouldBeLoggedInAs ( $fullName )

iShouldBeUnableToImpersonateThem() public method

iShouldNotBeLoggedInAs() public method

public iShouldNotBeLoggedInAs ( $fullName )

iShouldSeeThatImpersonatingWasSuccessful() public method

iTryToImpersonateThem() public method

iVisitTheStore() public method

public iVisitTheStore ( )