◆ testConstruct()
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest::testConstruct |
( |
| ) |
|
◆ testInvoke()
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest::testInvoke |
( |
| ) |
|
◆ testInvokeFalse()
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest::testInvokeFalse |
( |
| ) |
|
◆ testMatches()
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest::testMatches |
( |
| ) |
|
Definition at line 34 of file ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest.php.
36 $relation = $this->getMockBuilder(ilBuddySystemRelation::class)->disableOriginalConstructor()->getMock();
37 $relation->expects(self::once())->method(
'isIgnored')->willReturn(
true);
38 $relation->expects(self::once())->method(
'isOwnedByActor')->willReturn(
true);
39 $instance =
new DontApprove($relation);
41 $this->assertTrue($instance->matches());
◆ testMatchesIgnored()
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest::testMatchesIgnored |
( |
| ) |
|
Definition at line 44 of file ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest.php.
46 $relation = $this->getMockBuilder(ilBuddySystemRelation::class)->disableOriginalConstructor()->getMock();
47 $relation->expects(self::once())->method(
'isIgnored')->willReturn(
false);
48 $relation->expects(self::never())->method(
'isOwnedByActor');
49 $instance =
new DontApprove($relation);
51 $this->assertFalse($instance->matches());
◆ testMatchesOwned()
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest::testMatchesOwned |
( |
| ) |
|
Definition at line 54 of file ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRuleTest.php.
56 $relation = $this->getMockBuilder(ilBuddySystemRelation::class)->disableOriginalConstructor()->getMock();
57 $relation->expects(self::once())->method(
'isIgnored')->willReturn(
true);
58 $relation->expects(self::once())->method(
'isOwnedByActor')->willReturn(
false);
59 $instance =
new DontApprove($relation);
61 $this->assertFalse($instance->matches());
The documentation for this class was generated from the following file: