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

Public Member Functions

 setUp ()
 
 testCreateWithInstanceName ()
 
 testCreateDefault ()
 

Detailed Description

Definition at line 10 of file ValidatorFactoryTest.php.

Member Function Documentation

◆ setUp()

setUp ( )

Definition at line 15 of file ValidatorFactoryTest.php.

16  {
18  $this->model = $objectManager->create(\Magento\Framework\ValidatorFactory::class);
19  }
$objectManager
Definition: bootstrap.php:17

◆ testCreateDefault()

testCreateDefault ( )

Definition at line 27 of file ValidatorFactoryTest.php.

28  {
29  $default = \Magento\Framework\Validator::class;
30  $this->assertInstanceOf($default, $this->model->create());
31  }

◆ testCreateWithInstanceName()

testCreateWithInstanceName ( )

Definition at line 21 of file ValidatorFactoryTest.php.

22  {
23  $setName = \Magento\Framework\DataObject::class;
24  $this->assertInstanceOf($setName, $this->model->create([], $setName));
25  }

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