Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | final public function testHeaderFromSyntax(): void |
||
40 | { |
||
41 | $index = plugin_load('syntax', 'description'); |
||
42 | $this->assertTrue($index instanceof syntax_plugin_description); |
||
43 | |||
44 | $request = new TestRequest(); |
||
45 | $response = $request->get(array('id' => 'wiki:syntax')); |
||
46 | |||
47 | // check description meta headers, set from file |
||
48 | $this->assertStringContainsString( |
||
49 | 'Place the page description here', |
||
50 | $response->queryHTML('meta[name="description"]')->attr('content') |
||
51 | ); |
||
53 | } |