19 declare(strict_types=1);
25 $relation = $this->getMockBuilder(ilBuddySystemRelation::class)->disableOriginalConstructor()->getMock();
27 $this->assertInstanceOf(
28 ilBuddySystemRelationStateNullFilterRule::class,
40 $this->assertTrue($instance->
matches());
48 $this->assertTrue($instance($this->getMockBuilder(ilBuddySystemRelationState::class)->disableOriginalConstructor()->getMock()));
53 $relation = $this->getMockBuilder(ilBuddySystemRelation::class)->disableOriginalConstructor()->getMock();
57 $filtered = $this->getMockBuilder(ilBuddySystemRelationStateCollection::class)->disableOriginalConstructor()->getMock();
59 $collection = $this->getMockBuilder(ilBuddySystemRelationStateCollection::class)->disableOriginalConstructor()->getMock();
60 $collection->expects(self::once())->method(
'filter')->with($instance)->willReturn($filtered);
62 $state = $this->getMockBuilder(ilBuddySystemRelationState::class)->disableOriginalConstructor()->getMock();
63 $state->expects(self::once())->method(
'getPossibleTargetStates')->willReturn($collection);
65 $relation->expects(self::once())->method(
'getState')->willReturn($state);
67 $this->assertEquals($filtered, $instance->getStates());
testInvoke(ilBuddySystemRelationStateNullFilterRule $instance)
testConstruct
Class ilBuddySystemRelationStateNullFilterRule.
testMatches(ilBuddySystemRelationStateNullFilterRule $instance)
testConstruct