| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function testExecuteForEmptyData() { |
||
| 28 | |||
| 29 | $instance = new UserFieldsCreateTemplate(); |
||
| 30 | |||
| 31 | $outputPage = $this->getMockBuilder( '\OutputPage' ) |
||
| 32 | ->disableOriginalConstructor() |
||
| 33 | ->getMock(); |
||
| 34 | |||
| 35 | $GLOBALS['wgOut'] = $outputPage; |
||
| 36 | |||
| 37 | ob_start(); |
||
| 38 | $instance->execute(); |
||
| 39 | $text = ob_get_clean(); |
||
| 40 | |||
| 41 | $this->assertEmpty( |
||
| 42 | $text |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 81 |