Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
NewCustomerPasswordComplexityTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\CustomerAccountCreate;
11 use Magento\Cms\Test\Page\CmsIndex;
12 use Magento\Mtf\TestCase\Injectable;
13 
24 class NewCustomerPasswordComplexityTest extends Injectable
25 {
26  /* tags */
27  const MVP = 'yes';
28  const SEVERITY = 'S1';
29  /* end tags */
30 
37 
43  protected $cmsIndex;
44 
52  public function __inject(
53  CustomerAccountCreate $customerAccountCreate,
54  CmsIndex $cmsIndex
55  ) {
56  $this->customerAccountCreate = $customerAccountCreate;
57  $this->cmsIndex = $cmsIndex;
58  }
59 
66  public function test(Customer $customer)
67  {
68  // Steps
69  $this->cmsIndex->open();
70  $this->cmsIndex->getLinksBlock()->openLink('Create an Account');
71  $this->customerAccountCreate->getRegisterForm()->registerCustomer($customer);
72  }
73 }
__inject(CustomerAccountCreate $customerAccountCreate, CmsIndex $cmsIndex)
$customer
Definition: customers.php:11