ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ImageMapEditSessionRepositoryTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for ImageMapEditSessionRepositoryTest:
+ Collaboration diagram for ImageMapEditSessionRepositoryTest:

Public Member Functions

 testClear ()
 Test clear. More...
 
 testTargetScript ()
 
 testLinkType ()
 
 testAreaNr ()
 
 testCoords ()
 
 testAreaType ()
 
 testExternalLink ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo
 

Detailed Description

Test clipboard repository.

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

Definition at line 10 of file ImageMapEditSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

ImageMapEditSessionRepositoryTest::setUp ( )
protected

Definition at line 15 of file ImageMapEditSessionRepositoryTest.php.

15  : void
16  {
17  parent::setUp();
18  $this->repo = new \ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository();
19  $this->repo->clear();
20  }

◆ tearDown()

ImageMapEditSessionRepositoryTest::tearDown ( )
protected

Definition at line 22 of file ImageMapEditSessionRepositoryTest.php.

22  : void
23  {
24  }

◆ testAreaNr()

ImageMapEditSessionRepositoryTest::testAreaNr ( )

Definition at line 71 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

71  : void
72  {
74  $repo->setAreaNr(4);
75  $this->assertEquals(
76  4,
77  $repo->getAreaNr()
78  );
79  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

◆ testAreaType()

ImageMapEditSessionRepositoryTest::testAreaType ( )

Definition at line 91 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

91  : void
92  {
94  $repo->setAreaType("Rect");
95  $this->assertEquals(
96  "Rect",
97  $repo->getAreaType()
98  );
99  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

◆ testClear()

ImageMapEditSessionRepositoryTest::testClear ( )

Test clear.

Definition at line 29 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

29  : void
30  {
32 
33  $repo->setCoords("1,2,3");
34  $repo->setAreaNr(4);
35  $repo->setLinkType("int");
36  $repo->clear();
37  $this->assertEquals(
38  "",
39  $repo->getCoords()
40  );
41  $this->assertEquals(
42  0,
43  $repo->getAreaNr()
44  );
45  $this->assertEquals(
46  "",
47  $repo->getLinkType()
48  );
49  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

◆ testCoords()

ImageMapEditSessionRepositoryTest::testCoords ( )

Definition at line 81 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

81  : void
82  {
84  $repo->setCoords("7,8,9,2");
85  $this->assertEquals(
86  "7,8,9,2",
87  $repo->getCoords()
88  );
89  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

◆ testExternalLink()

ImageMapEditSessionRepositoryTest::testExternalLink ( )

Definition at line 101 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

101  : void
102  {
103  $repo = $this->repo;
104  $repo->setExternalLink("https://www.ilias.de");
105  $this->assertEquals(
106  "https://www.ilias.de",
107  $repo->getExternalLink()
108  );
109  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

◆ testLinkType()

ImageMapEditSessionRepositoryTest::testLinkType ( )

Definition at line 61 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

61  : void
62  {
64  $repo->setLinkType("ext");
65  $this->assertEquals(
66  "ext",
67  $repo->getLinkType()
68  );
69  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

◆ testTargetScript()

ImageMapEditSessionRepositoryTest::testTargetScript ( )

Definition at line 51 of file ImageMapEditSessionRepositoryTest.php.

References $repo.

51  : void
52  {
54  $repo->setTargetScript("ilias.php?a=1");
55  $this->assertEquals(
56  "ilias.php?a=1",
57  $repo->getTargetScript()
58  );
59  }
ILIAS MediaObjects ImageMap ImageMapEditSessionRepository $repo

Field Documentation

◆ $repo

ILIAS MediaObjects ImageMap ImageMapEditSessionRepository ImageMapEditSessionRepositoryTest::$repo
protected

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