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