Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
GroupTest Class Reference
Inheritance diagram for GroupTest:

Public Member Functions

 testCRUD ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $groupModel
 
 $groupFactory
 

Detailed Description

Definition at line 9 of file GroupTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 21 of file GroupTest.php.

22  {
24  \Magento\Customer\Model\Group::class
25  );
26  $this->groupFactory = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
27  \Magento\Customer\Api\Data\GroupInterfaceFactory::class
28  );
29  }

◆ testCRUD()

testCRUD ( )

Definition at line 31 of file GroupTest.php.

32  {
33  $this->groupModel->setCode('test');
34  $crud = new \Magento\TestFramework\Entity($this->groupModel, ['customer_group_code' => uniqid()]);
35  $crud->testCrud();
36  }

Field Documentation

◆ $groupFactory

$groupFactory
protected

Definition at line 19 of file GroupTest.php.

◆ $groupModel

$groupModel
protected

Definition at line 14 of file GroupTest.php.


The documentation for this class was generated from the following file: