ILIAS  release_8 Revision v8.24
PCMapEditorSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
11{
12 //protected $backupGlobals = false;
13 protected \ILIAS\COPage\PC\MapEditorSessionRepository $repo;
14
15 protected function setUp(): void
16 {
17 parent::setUp();
18 $this->repo = new \ILIAS\COPage\PC\MapEditorSessionRepository();
19 }
20
21 protected function tearDown(): void
22 {
23 }
24
28 public function testMode(): void
29 {
31 $repo->setMode("testmode");
32 $this->assertEquals(
33 "testmode",
34 $repo->getMode()
35 );
36 }
37
41 public function testAreaNr(): void
42 {
44 $repo->setAreaNr("3");
45 $this->assertEquals(
46 "3",
47 $repo->getAreaNr()
48 );
49 }
50}
ILIAS COPage PC MapEditorSessionRepository $repo