1<?
php declare(strict_types=1);
4require_once
'Services/Contact/BuddySystem/test/states/ilBuddySystemBaseStateTest.php';
25 $this->assertFalse($this->relation->isUnlinked());
33 $this->assertFalse($this->relation->isLinked());
41 $this->assertTrue($this->relation->isRequested());
49 $this->assertFalse($this->relation->isIgnored());
57 $this->relation->unlink();
58 $this->assertTrue($this->relation->isUnlinked());
59 $this->assertTrue($this->relation->wasRequested());
67 $this->relation->link();
68 $this->assertTrue($this->relation->isLinked());
69 $this->assertTrue($this->relation->wasRequested());
77 $this->expectException(ilBuddySystemRelationStateException::class);
78 $this->relation->request();
86 $this->relation->ignore();
87 $this->assertTrue($this->relation->isIgnored());
An exception for terminatinating execution or to throw for unit testing.
Class ilBuddySystemBaseStateTest.
Class ilBuddySystemRequestedRelationState.
Class ilBuddySystemRequestedStateRelationTest.
getInitialState()
@inheritDoc
Interface ilBuddySystemRelationState.