ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilBuddySystemLinkedStateRelationTest Class Reference
+ Inheritance diagram for ilBuddySystemLinkedStateRelationTest:
+ Collaboration diagram for ilBuddySystemLinkedStateRelationTest:

Public Member Functions

 getInitialState ()
 
 testIsUnlinked ()
 
 testIsLinked ()
 
 testIsRequested ()
 
 testIsIgnored ()
 
 testCanBeUnlinked ()
 
 testCanBeLinked ()
 
 testCanBeRequested ()
 
 testCanBeIgnored ()
 
 testPossibleTargetStates ()
 
 getInitialState ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilBuddySystemBaseStateTestCase
 setUp ()
 
- Protected Member Functions inherited from ilBuddySystemBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, mixed $value)
 
- Protected Attributes inherited from ilBuddySystemBaseStateTestCase
ilBuddySystemRelation $relation
 

Detailed Description

Definition at line 21 of file ilBuddySystemLinkedStateRelationTest.php.

Member Function Documentation

◆ getInitialState()

ilBuddySystemLinkedStateRelationTest::getInitialState ( )

◆ testCanBeIgnored()

ilBuddySystemLinkedStateRelationTest::testCanBeIgnored ( )

Definition at line 67 of file ilBuddySystemLinkedStateRelationTest.php.

67 : void
68 {
69 $this->expectException(ilBuddySystemRelationStateException::class);
70 $this->relation->ignore();
71 }

◆ testCanBeLinked()

ilBuddySystemLinkedStateRelationTest::testCanBeLinked ( )

Definition at line 55 of file ilBuddySystemLinkedStateRelationTest.php.

55 : void
56 {
57 $this->expectException(ilBuddySystemRelationStateException::class);
58 $this->relation->link();
59 }

◆ testCanBeRequested()

ilBuddySystemLinkedStateRelationTest::testCanBeRequested ( )

Definition at line 61 of file ilBuddySystemLinkedStateRelationTest.php.

61 : void
62 {
63 $this->expectException(ilBuddySystemRelationStateException::class);
64 $this->relation->request();
65 }

◆ testCanBeUnlinked()

ilBuddySystemLinkedStateRelationTest::testCanBeUnlinked ( )

Definition at line 48 of file ilBuddySystemLinkedStateRelationTest.php.

48 : void
49 {
50 $this->relation->unlink();
51 $this->assertTrue($this->relation->isUnlinked());
52 $this->assertTrue($this->relation->wasLinked());
53 }

◆ testIsIgnored()

ilBuddySystemLinkedStateRelationTest::testIsIgnored ( )

Definition at line 43 of file ilBuddySystemLinkedStateRelationTest.php.

43 : void
44 {
45 $this->assertFalse($this->relation->isIgnored());
46 }

◆ testIsLinked()

ilBuddySystemLinkedStateRelationTest::testIsLinked ( )

Definition at line 33 of file ilBuddySystemLinkedStateRelationTest.php.

33 : void
34 {
35 $this->assertTrue($this->relation->isLinked());
36 }

◆ testIsRequested()

ilBuddySystemLinkedStateRelationTest::testIsRequested ( )

Definition at line 38 of file ilBuddySystemLinkedStateRelationTest.php.

38 : void
39 {
40 $this->assertFalse($this->relation->isRequested());
41 }

◆ testIsUnlinked()

ilBuddySystemLinkedStateRelationTest::testIsUnlinked ( )

Definition at line 28 of file ilBuddySystemLinkedStateRelationTest.php.

28 : void
29 {
30 $this->assertFalse($this->relation->isUnlinked());
31 }

◆ testPossibleTargetStates()

ilBuddySystemLinkedStateRelationTest::testPossibleTargetStates ( )

Definition at line 73 of file ilBuddySystemLinkedStateRelationTest.php.

73 : void
74 {
75 $this->assertTrue(
76 $this->relation->getState()
77 ->getPossibleTargetStates()
80 ]))
81 );
82 }
Class ilBuddySystemRelationStateCollection A collection of relation states.

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