ILIAS  release_8 Revision v8.24
ilTestAccessTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->addGlobal_ilAccess();
34
35 $this->testObj = new ilTestAccess(0, 0);
36 }
37
39 {
40 $this->assertInstanceOf(ilTestAccess::class, $this->testObj);
41 }
42
43 public function testAccess(): void
44 {
45 $accessHandler_mock = $this->createMock(ilAccessHandler::class);
46 $this->testObj->setAccess($accessHandler_mock);
47
48 $this->assertEquals($accessHandler_mock, $this->testObj->getAccess());
49 }
50
51 public function testRefId(): void
52 {
53 $this->testObj->setRefId(120);
54
55 $this->assertEquals(120, $this->testObj->getRefId());
56 }
57
58 public function testTestId(): void
59 {
60 $this->testObj->setTestId(120);
61
62 $this->assertEquals(120, $this->testObj->getTestId());
63 }
64}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_instantiateObject_shouldReturnInstance()
ilTestAccess $testObj
Class ilTestBaseClass.