Definition at line 31 of file UserActionTest.php.
◆ testConstruct()
ILIAS\LegalDocuments\test\UserActionTest::testConstruct |
( |
| ) |
|
Definition at line 35 of file UserActionTest.php.
35 : void
36 {
37 $this->assertInstanceOf(UserAction::class, new UserAction($this->mock(ilObjUser::class), $this->mock(Clock::class)));
38 }
◆ testModifiedNow()
ILIAS\LegalDocuments\test\UserActionTest::testModifiedNow |
( |
| ) |
|
Definition at line 40 of file UserActionTest.php.
40 : void
41 {
42 $date = new DateTimeImmutable();
43
44 $instance = new UserAction($this->mockTree(ilObjUser::class, ['getId' => 34]), $this->mockTree(Clock::class, ['now' => $date]));
45
46 $edit = $instance->modifiedNow();
47 $this->assertSame(34, $edit->user());
48 $this->assertSame($date, $edit->time());
49 }
The documentation for this class was generated from the following file: