ILIAS  release_8 Revision v8.25
AccessSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
10class AccessSessionRepositoryTest extends TestCase
11{
12 protected \ILIAS\Portfolio\Access\AccessSessionRepository $repo;
13
14 protected function setUp(): void
15 {
16 parent::setUp();
17 $this->repo = new \ILIAS\Portfolio\Access\AccessSessionRepository();
18 }
19
20 protected function tearDown(): void
21 {
22 }
23
24 public function testSharesSessionPassword()
25 {
27 $repo->setSharedSessionPassword(5, "mypass");
28 $this->assertEquals(
29 "mypass",
30 $repo->getSharedSessionPassword(5)
31 );
32 }
33}
ILIAS Portfolio Access AccessSessionRepository $repo