ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ContentModeManagerTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for ContentModeManagerTest:
+ Collaboration diagram for ContentModeManagerTest:

Public Member Functions

 testAdminView ()
 Test admin view. More...
 
 testContentView ()
 Test content view. More...
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ILIAS Container Content ViewManager $manager
 

Detailed Description

Test clipboard repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 12 of file ContentModeManagerTest.php.

Member Function Documentation

◆ setUp()

ContentModeManagerTest::setUp ( )
protected

Definition at line 16 of file ContentModeManagerTest.php.

16  : void
17  {
18  /* parent::setUp();
19  $view_repo = new \ILIAS\Container\Content\ModeSessionRepository();
20  $this->manager = new \ILIAS\Container\Content\ModeManager($view_repo);*/
21  }

◆ tearDown()

ContentModeManagerTest::tearDown ( )
protected

Definition at line 23 of file ContentModeManagerTest.php.

23  : void
24  {
25  }

◆ testAdminView()

ContentModeManagerTest::testAdminView ( )

Test admin view.

Definition at line 30 of file ContentModeManagerTest.php.

References $manager.

30  : void
31  {
32  $this->markTestSkipped('SetUp for this case fails.');
33 
35 
36  $manager->setAdminMode();
37 
38  $this->assertEquals(
39  true,
40  $manager->isAdminMode()
41  );
42  $this->assertEquals(
43  false,
44  $manager->isContentMode()
45  );
46  }
ILIAS Container Content ViewManager $manager

◆ testContentView()

ContentModeManagerTest::testContentView ( )

Test content view.

Definition at line 51 of file ContentModeManagerTest.php.

References $manager.

51  : void
52  {
53  $this->markTestSkipped('SetUp for this case fails.');
54 
56 
57  $manager->setContentMode();
58 
59  $this->assertEquals(
60  false,
61  $manager->isAdminMode()
62  );
63  $this->assertEquals(
64  true,
65  $manager->isContentMode()
66  );
67  }
ILIAS Container Content ViewManager $manager

Field Documentation

◆ $manager

ILIAS Container Content ViewManager ContentModeManagerTest::$manager
protected

Definition at line 14 of file ContentModeManagerTest.php.

Referenced by testAdminView(), and testContentView().


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