| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function testCanConstruct() { |
||
| 20 | |||
| 21 | $this->assertInstanceOf( |
||
| 22 | PropertyRegistry::class, |
||
| 23 | new PropertyRegistry() |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 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 | |||
| 46 | } |
||
| 47 |