ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NotesSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
26class NotesSessionRepositoryTest extends TestCase
27{
28 protected \ILIAS\Notes\NotesSessionRepository $repo;
29
30 protected function setUp(): void
31 {
32 parent::setUp();
33 $this->repo = new \ILIAS\Notes\NotesSessionRepository();
34 }
35
36 protected function tearDown(): void
37 {
38 }
39
43 public function testSortAscending(): void
44 {
46 $repo->setSortAscending(true);
47 $this->assertEquals(
48 true,
49 $repo->getSortAscending()
50 );
51 $repo->setSortAscending(false);
52 $this->assertEquals(
53 false,
54 $repo->getSortAscending()
55 );
56 }
57}
ILIAS Notes NotesSessionRepository $repo