ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PCMapEditorSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
27{
28 //protected $backupGlobals = false;
29 protected \ILIAS\COPage\PC\MapEditorSessionRepository $repo;
30
31 protected function setUp(): void
32 {
33 parent::setUp();
34 $this->repo = new \ILIAS\COPage\PC\MapEditorSessionRepository();
35 }
36
37 protected function tearDown(): void
38 {
39 }
40
44 public function testMode(): void
45 {
47 $repo->setMode("testmode");
48 $this->assertEquals(
49 "testmode",
50 $repo->getMode()
51 );
52 }
53
57 public function testAreaNr(): void
58 {
60 $repo->setAreaNr("3");
61 $this->assertEquals(
62 "3",
63 $repo->getAreaNr()
64 );
65 }
66}
ILIAS COPage PC MapEditorSessionRepository $repo