Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | final public function testHeaderFromSyntax(): void |
||
31 | { |
||
32 | global $conf; |
||
33 | $conf['keyword_source'] = 'syntax'; |
||
34 | |||
35 | $index = plugin_load('syntax', 'description'); |
||
36 | $this->assertTrue($index instanceof syntax_plugin_description); |
||
37 | |||
38 | $request = new TestRequest(); |
||
39 | $response = $request->get(array('id' => 'wiki:syntax')); |
||
40 | |||
41 | // check description meta headers, set from file |
||
42 | $this->assertStringContainsString( |
||
43 | 'Place the page description here', |
||
44 | $response->queryHTML('meta[name="description"]')->attr('content') |
||
45 | ); |
||
47 | } |