ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
NotesSessionRepositoryTest.php
Go to the documentation of this file.
1 <?php
2 
4 
10 class NotesSessionRepositoryTest extends TestCase
11 {
12  protected \ILIAS\Notes\NotesSessionRepository $repo;
13 
14  protected function setUp(): void
15  {
16  parent::setUp();
17  $this->repo = new \ILIAS\Notes\NotesSessionRepository();
18  }
19 
20  protected function tearDown(): void
21  {
22  }
23 
27  public function testSortAscending(): void
28  {
29  $repo = $this->repo;
30  $repo->setSortAscending(true);
31  $this->assertEquals(
32  true,
33  $repo->getSortAscending()
34  );
35  $repo->setSortAscending(false);
36  $this->assertEquals(
37  false,
38  $repo->getSortAscending()
39  );
40  }
41 }
ILIAS Notes NotesSessionRepository $repo