ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BoxTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use PHPUnit\Framework\TestCase;
24
25class BoxTest extends TestCase
26{
27 protected function setUp(): void
28 {
29 parent::setUp();
30 }
31
32 protected function tearDown(): void
33 {
34 }
35
36 public function testProperties()
37 {
38 $box = new Box(
39 1,
40 2,
41 3,
42 "2024-01-01 01:00:00"
43 );
44
45 $this->assertSame(1, $box->getBoxNr());
46 $this->assertSame(2, $box->getUserId());
47 $this->assertSame(3, $box->getGloId());
48 $this->assertSame("2024-01-01 01:00:00", $box->getLastAccess());
49 }
50
52 {
53 $box = new Box(
54 1,
55 2,
56 3
57 );
58
59 $this->assertSame(1, $box->getBoxNr());
60 $this->assertSame(2, $box->getUserId());
61 $this->assertSame(3, $box->getGloId());
62 $this->assertNull($box->getLastAccess());
63 }
64}