ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Glossary\Flashcard\BoxTest Class Reference
+ Inheritance diagram for ILIAS\Glossary\Flashcard\BoxTest:
+ Collaboration diagram for ILIAS\Glossary\Flashcard\BoxTest:

Public Member Functions

 testProperties ()
 
 testPropertiesWithNoLastAccess ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Detailed Description

Definition at line 25 of file BoxTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Glossary\Flashcard\BoxTest::setUp ( )
protected

Definition at line 27 of file BoxTest.php.

27  : void
28  {
29  parent::setUp();
30  }

◆ tearDown()

ILIAS\Glossary\Flashcard\BoxTest::tearDown ( )
protected

Definition at line 32 of file BoxTest.php.

32  : void
33  {
34  }

◆ testProperties()

ILIAS\Glossary\Flashcard\BoxTest::testProperties ( )

Definition at line 36 of file BoxTest.php.

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  }

◆ testPropertiesWithNoLastAccess()

ILIAS\Glossary\Flashcard\BoxTest::testPropertiesWithNoLastAccess ( )

Definition at line 51 of file BoxTest.php.

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  }

The documentation for this class was generated from the following file: