| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function testParse() { |
||
| 39 | $this->assertArrayHasKey( |
||
| 40 | 0, |
||
| 41 | $this->getLuaLibrary()->parse( '', '', [] ) |
||
| 42 | ); |
||
| 43 | $this->assertEquals( |
||
| 44 | 'No component name provided for mw.bootstrap.parse.', |
||
| 45 | $this->getLuaLibrary()->parse( '', '', [] )[0] |
||
| 46 | ); |
||
| 47 | $this->assertEquals( |
||
| 48 | 'Invalid component name passed to mw.bootstrap.parse: foobar.', |
||
| 49 | $this->getLuaLibrary()->parse( 'foobar', '', [] )[0] |
||
| 50 | ); |
||
| 51 | $this->assertEquals( |
||
| 52 | '<span class="glyphicon glyphicon-asterisk"></span>', |
||
| 53 | $this->getLuaLibrary()->parse( 'icon', 'asterisk', [] )[0] |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | } |