ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Tests\Setup\ilCommonSetupAgentTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Setup\ilCommonSetupAgentTest:
+ Collaboration diagram for ILIAS\Tests\Setup\ilCommonSetupAgentTest:

Public Member Functions

 testGetNamedObjectives ()
 
 testExecuteClosure ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

ilCommonSetupAgent $testObj
 

Detailed Description

Definition at line 36 of file ilCommonSetupAgentTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Setup\ilCommonSetupAgentTest::setUp ( )
protected

Definition at line 40 of file ilCommonSetupAgentTest.php.

References ILIAS\UI\examples\Layout\Page\Standard\$refinery.

40  : void
41  {
42  $refinery = new Refinery(
43  $this->createMock(DataFactory::class),
44  $this->createMock(ilLanguage::class)
45  );
46 
47  parent::setUp();
48  $this->testObj = new ilCommonSetupAgent($refinery, $this->createMock(DataFactory::class));
49  }

◆ testExecuteClosure()

ILIAS\Tests\Setup\ilCommonSetupAgentTest::testExecuteClosure ( )

Definition at line 59 of file ilCommonSetupAgentTest.php.

59  : void
60  {
61  $objectiveConstructor = $this->testObj->getNamedObjectives(new NullConfig())["registerNICKey"];
62  $closureResult = $objectiveConstructor->create();
63  $this->assertInstanceOf(Objective::class, $closureResult);
64  }

◆ testGetNamedObjectives()

ILIAS\Tests\Setup\ilCommonSetupAgentTest::testGetNamedObjectives ( )

Definition at line 51 of file ilCommonSetupAgentTest.php.

51  : void
52  {
53  $this->assertArrayHasKey(
54  "registerNICKey",
55  $this->testObj->getNamedObjectives(new NullConfig())
56  );
57  }

Field Documentation

◆ $testObj

ilCommonSetupAgent ILIAS\Tests\Setup\ilCommonSetupAgentTest::$testObj
private

Definition at line 38 of file ilCommonSetupAgentTest.php.


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