| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testRegister() { |
||
| 27 | |||
| 28 | $propertyRegistry = $this->getMockBuilder( '\SMW\PropertyRegistry' ) |
||
| 29 | ->disableOriginalConstructor() |
||
| 30 | ->getMock(); |
||
| 31 | |||
| 32 | $propertyRegistry->expects( $this->atLeastOnce() ) |
||
| 33 | ->method( 'registerProperty' ) |
||
| 34 | ->with( $this->equalTo( PropertyRegistry::SBL_PARENTPAGE ) ); |
||
| 35 | |||
| 36 | $propertyRegistry->expects( $this->atLeastOnce() ) |
||
| 37 | ->method( 'registerPropertyAlias' ) |
||
| 38 | ->with( $this->equalTo( PropertyRegistry::SBL_PARENTPAGE ) ); |
||
| 39 | |||
| 40 | $instance = new PropertyRegistry(); |
||
| 41 | $instance->register( $propertyRegistry ); |
||
| 42 | } |
||
| 43 | |||
| 45 |