ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestPassesSelectorTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestPassesSelector(
34  $this->createMock(ilDBInterface::class),
35  $this->createMock(ilObjTest::class)
36  );
37  }
38 
40  {
41  $this->assertInstanceOf(ilTestPassesSelector::class, $this->testObj);
42  }
43 
44  public function testActiveId(): void
45  {
46  $this->testObj->setActiveId(125);
47  $this->assertEquals(125, $this->testObj->getActiveId());
48  }
49 
50  public function testLastFinishedPass(): void
51  {
52  $this->testObj->setLastFinishedPass(125);
53  $this->assertEquals(125, $this->testObj->getLastFinishedPass());
54  }
55 }
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...