Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function testRegister() { |
||
28 | |||
29 | $propertyRegistry = $this->getMockBuilder( '\SMW\PropertyRegistry' ) |
||
30 | ->disableOriginalConstructor() |
||
31 | ->getMock(); |
||
32 | |||
33 | $propertyRegistry->expects( $this->any() ) |
||
34 | ->method( 'registerProperty' ) |
||
35 | ->withConsecutive( |
||
36 | [ $this->equalTo( PropertyRegistry::NOTIFICATIONS_ON ) ], |
||
37 | [ $this->equalTo( PropertyRegistry::NOTIFICATIONS_TO_GROUP ) ], |
||
38 | [ $this->equalTo( PropertyRegistry::NOTIFICATIONS_GROUP_MEMBER_OF ) ], |
||
39 | [ $this->equalTo( PropertyRegistry::NOTIFICATIONS_TO ) ] |
||
40 | ); |
||
41 | |||
42 | $instance = new PropertyRegistry(); |
||
43 | $instance->registerTo( $propertyRegistry ); |
||
44 | } |
||
45 | |||
47 |