/** * Assert that edit page of customer account contains correct title. * * @param CustomerAccountIndex $pageCustomerIndex * @param Customer $customer * @return void */ public function processAssert(CustomerAccountIndex $pageCustomerIndex, Customer $customer) { \PHPUnit_Framework_Assert::assertEquals($customer->getFirstname() . ' ' . $customer->getLastname(), $pageCustomerIndex->getTitleBlock()->getTitle(), 'Wrong page title is displayed.'); }
/** * Assert that after clicking to "Create account" button customer redirected to Dashboard. * * @param CustomerAccountIndex $accountIndexPage * @return void */ public function processAssert(CustomerAccountIndex $accountIndexPage) { \PHPUnit_Framework_Assert::assertEquals(self::DASHBOARD_MESSAGE, $accountIndexPage->getTitleBlock()->getTitle(), 'Wrong dashboard title is displayed.'); }