11 use Magento\Customer\Test\Page\Adminhtml\CustomerIndex;
12 use Magento\Customer\Test\Page\Adminhtml\CustomerIndexNew;
13 use Magento\Mtf\Constraint\AbstractConstraint;
14 use Magento\Mtf\Fixture\FixtureFactory;
30 public function processAssert(
31 FixtureFactory $fixtureFactory,
32 CustomerGroup $customerGroup,
33 CustomerIndexNew $customerIndexNew,
34 CustomerIndex $customerIndex
37 $customer = $fixtureFactory->createByCode(
40 'dataset' =>
'defaultBackend',
41 'data' => [
'group_id' => [
'customerGroup' => $customerGroup]]
44 $filter = [
'email' =>
$customer->getEmail()];
46 $customerIndexNew->open();
47 $customerIndexNew->getCustomerForm()->fillCustomer(
$customer);
48 $customerIndexNew->getPageActionsBlock()->save();
49 $customerIndex->getCustomerGridBlock()->searchAndOpen($filter);
50 $customerFormData = $customerIndexNew->getCustomerForm()->getData(
$customer);
51 $customerFixtureData =
$customer->getData();
52 $diff = array_diff($customerFixtureData, $customerFormData);
54 \PHPUnit\Framework\Assert::assertTrue(
56 "Customer group {$customerGroup->getCustomerGroupCode()} not in account information page." 67 return 'Customer group find on account information page.';