Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerBackendFormTitle.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Customer\Test\Page\CustomerAccountIndex;
12 
16 class AssertCustomerBackendFormTitle extends AbstractConstraint
17 {
18  /* tags */
19  const SEVERITY = 'middle';
20  /* end tags */
21 
29  public function processAssert(CustomerAccountIndex $pageCustomerIndex, Customer $customer)
30  {
31  \PHPUnit\Framework\Assert::assertEquals(
32  $customer->getFirstname() . ' ' . $customer->getLastname(),
33  $pageCustomerIndex->getTitleBlock()->getTitle(),
34  'Wrong page title is displayed.'
35  );
36  }
37 
43  public function toString()
44  {
45  return 'Customer backend edit form title is correct.';
46  }
47 }
$customer
Definition: customers.php:11
processAssert(CustomerAccountIndex $pageCustomerIndex, Customer $customer)