ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Tests\Refinery\FactoryTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\FactoryTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\FactoryTest:

Public Member Functions

 setUp ()
 
 testCreateToGroup ()
 
 testCreateInGroup ()
 
 testCreateIntegerGroup ()
 
 testCreateStringGroup ()
 
 testCreateNumericGroup ()
 
 testCreateLogicalGroup ()
 
 testCreatePasswordGroup ()
 
 testCreateCustomGroup ()
 
 testCreateContainerGroup ()
 
 testCreateDateTimeGroup ()
 
 testCreateUriGrouo ()
 
 testByTryingInGroup ()
 
- Public Member Functions inherited from ILIAS\Tests\Refinery\TestCase
 getLanguage ()
 

Private Attributes

 $basicFactory
 

Detailed Description

Definition at line 15 of file FactoryTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Refinery\FactoryTest::setUp ( )

Definition at line 22 of file FactoryTest.php.

22  : void
23  {
24  $language = $this->getMockBuilder('\ilLanguage')
25  ->disableOriginalConstructor()
26  ->getMock();
27 
28  $this->basicFactory = new Factory(new \ILIAS\Data\Factory(), $language);
29  }
Class ChatMainBarProvider .

◆ testByTryingInGroup()

ILIAS\Tests\Refinery\FactoryTest::testByTryingInGroup ( )

Definition at line 106 of file FactoryTest.php.

107  {
108  $instance = $this->basicFactory->byTrying([
109  $this->basicFactory->numeric(),
110  $this->basicFactory->string()
111  ]);
112  $this->assertInstanceOf(\ILIAS\Refinery\ByTrying::class, $instance);
113  }
Class ChatMainBarProvider .

◆ testCreateContainerGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateContainerGroup ( )

Definition at line 87 of file FactoryTest.php.

88  {
89  $group = $this->basicFactory->container();
90 
91  $this->assertInstanceOf(\ILIAS\Refinery\Container\Group::class, $group);
92  }
Class ChatMainBarProvider .

◆ testCreateCustomGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateCustomGroup ( )

Definition at line 80 of file FactoryTest.php.

81  {
82  $group = $this->basicFactory->custom();
83 
84  $this->assertInstanceOf(\ILIAS\Refinery\Custom\Group::class, $group);
85  }
Class ChatMainBarProvider .

◆ testCreateDateTimeGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateDateTimeGroup ( )

Definition at line 94 of file FactoryTest.php.

95  {
96  $group = $this->basicFactory->dateTime();
97  $this->assertInstanceOf(\ILIAS\Refinery\DateTime\Group::class, $group);
98  }
Class ChatMainBarProvider .

◆ testCreateInGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateInGroup ( )

Definition at line 38 of file FactoryTest.php.

39  {
40  $group = $this->basicFactory->in();
41 
42  $this->assertInstanceOf(\ILIAS\Refinery\In\Group::class, $group);
43  }
Class ChatMainBarProvider .

◆ testCreateIntegerGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateIntegerGroup ( )

Definition at line 45 of file FactoryTest.php.

46  {
47  $group = $this->basicFactory->int();
48 
49  $this->assertInstanceOf(\ILIAS\Refinery\Integer\Group::class, $group);
50  }
Class ChatMainBarProvider .

◆ testCreateLogicalGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateLogicalGroup ( )

Definition at line 66 of file FactoryTest.php.

67  {
68  $group = $this->basicFactory->logical();
69 
70  $this->assertInstanceOf(\ILIAS\Refinery\Logical\Group::class, $group);
71  }
Class ChatMainBarProvider .

◆ testCreateNumericGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateNumericGroup ( )

Definition at line 59 of file FactoryTest.php.

60  {
61  $group = $this->basicFactory->numeric();
62 
63  $this->assertInstanceOf(\ILIAS\Refinery\Numeric\Group::class, $group);
64  }
Class ChatMainBarProvider .

◆ testCreatePasswordGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreatePasswordGroup ( )

Definition at line 73 of file FactoryTest.php.

74  {
75  $group = $this->basicFactory->password();
76 
77  $this->assertInstanceOf(\ILIAS\Refinery\Password\Group::class, $group);
78  }
Class ChatMainBarProvider .

◆ testCreateStringGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateStringGroup ( )

Definition at line 52 of file FactoryTest.php.

53  {
54  $group = $this->basicFactory->string();
55 
56  $this->assertInstanceOf(\ILIAS\Refinery\String\Group::class, $group);
57  }
Class ChatMainBarProvider .

◆ testCreateToGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateToGroup ( )

Definition at line 31 of file FactoryTest.php.

32  {
33  $group = $this->basicFactory->to();
34 
35  $this->assertInstanceOf(\ILIAS\Refinery\To\Group::class, $group);
36  }
Class ChatMainBarProvider .

◆ testCreateUriGrouo()

ILIAS\Tests\Refinery\FactoryTest::testCreateUriGrouo ( )

Definition at line 100 of file FactoryTest.php.

101  {
102  $group = $this->basicFactory->uri();
103  $this->assertInstanceOf(\ILIAS\Refinery\URI\Group::class, $group);
104  }
Class ChatMainBarProvider .

Field Documentation

◆ $basicFactory

ILIAS\Tests\Refinery\FactoryTest::$basicFactory
private

Definition at line 20 of file FactoryTest.php.


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