ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Glossary\Flashcard\TermTest Class Reference
+ Inheritance diagram for ILIAS\Glossary\Flashcard\TermTest:
+ Collaboration diagram for ILIAS\Glossary\Flashcard\TermTest:

Public Member Functions

 testProperties ()
 
 testPropertiesWithNoLastAccess ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Detailed Description

Definition at line 25 of file TermTest.php.

Member Function Documentation

◆ setUp()

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

Definition at line 27 of file TermTest.php.

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

◆ tearDown()

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

Definition at line 32 of file TermTest.php.

32 : void
33 {
34 }

◆ testProperties()

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

Definition at line 36 of file TermTest.php.

37 {
38 $term = new Term(
39 1,
40 2,
41 3,
42 4,
43 "2024-01-01 01:00:00"
44 );
45
46 $this->assertSame(1, $term->getTermId());
47 $this->assertSame(2, $term->getUserId());
48 $this->assertSame(3, $term->getGloId());
49 $this->assertSame(4, $term->getBoxNr());
50 $this->assertSame("2024-01-01 01:00:00", $term->getLastAccess());
51 }

◆ testPropertiesWithNoLastAccess()

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

Definition at line 53 of file TermTest.php.

54 {
55 $term = new Term(
56 1,
57 2,
58 3,
59 4
60 );
61
62 $this->assertSame(1, $term->getTermId());
63 $this->assertSame(2, $term->getUserId());
64 $this->assertSame(3, $term->getGloId());
65 $this->assertSame(4, $term->getBoxNr());
66 $this->assertNull($term->getLastAccess());
67 }

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