19 declare(strict_types=1);
34 $this->assertFalse($this->relation->isUnlinked());
39 $this->assertFalse($this->relation->isLinked());
44 $this->assertTrue($this->relation->isRequested());
49 $this->assertFalse($this->relation->isIgnored());
54 $this->relation->unlink();
55 $this->assertTrue($this->relation->isUnlinked());
56 $this->assertTrue($this->relation->wasRequested());
61 $this->relation->link();
62 $this->assertTrue($this->relation->isLinked());
63 $this->assertTrue($this->relation->wasRequested());
68 $this->expectException(ilBuddySystemRelationStateException::class);
69 $this->relation->request();
74 $this->relation->ignore();
75 $this->assertTrue($this->relation->isIgnored());
81 $this->relation->getState()
82 ->getPossibleTargetStates()
Class ilBuddySystemIgnoredRequestRelationState.
Class ilBuddySystemUnlinkedRelationState.
testPossibleTargetStates()
Class ilBuddySystemRequestedStateRelationTest.
Class ilBuddySystemLinkedState.
Class ilBuddySystemRelationStateCollection A collection of relation states.
Class ilBuddySystemRequestedRelationState.
Class ilBuddySystemBaseStateTest.
Interface ilBuddySystemRelationState.