/** * Assert that customer group is set to default on customer form. * * @param Customer $customer * @param CustomerGroup $defaultCustomerGroup * @param CustomerIndexNew $customerIndexNew * @param CustomerIndexNew $customerIndexEdit * @return void */ public function processAssert(Customer $customer, CustomerGroup $defaultCustomerGroup, CustomerIndexNew $customerIndexNew, CustomerIndexNew $customerIndexEdit) { $customerIndexEdit->open(['id' => $customer->getId()]); $customerFormData = $customerIndexNew->getCustomerForm()->getData(); \PHPUnit_Framework_Assert::assertTrue($customerFormData['group_id'] == $defaultCustomerGroup->getCustomerGroupCode(), "Customer group not set to default after group was deleted."); }