| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function doTestRegisteredScribuntoExternalLibraries( $instance ) { |
||
| 35 | |||
| 36 | $handler = 'ScribuntoExternalLibraries'; |
||
| 37 | |||
| 38 | $engine = ''; |
||
| 39 | $extraLibraries = []; |
||
| 40 | |||
| 41 | $this->assertTrue( |
||
| 42 | $instance->isRegistered( $handler ) |
||
| 43 | ); |
||
| 44 | |||
| 45 | $this->assertThatHookIsExcutable( |
||
| 46 | $instance->getHandlerFor( $handler ), |
||
| 47 | [ $engine, &$extraLibraries ] |
||
| 48 | ); |
||
| 49 | |||
| 50 | $this->assertArrayHasKey( |
||
| 51 | 'mw.smw', |
||
| 52 | $extraLibraries |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | |||
| 64 |