1<?php 2 3/** 4 * Action tests for the description plugin. 5 * 6 * @group plugin_description 7 * @group plugins 8 * 9 * @author Mark C. Prins <mprins@users.sf.net> 10 * 11 * @noinspection AutoloadingIssuesInspection 12 * @phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps 13 */ 14class action_plugin_description_test extends DokuWikiTest 15{ 16 protected $pluginsEnabled = array('description'); 17 18 /** 19 * @throws Exception if anything goes wrong 20 */ 21 final public function testHeaders(): void 22 { 23 $request = new TestRequest(); 24 $response = $request->get(array('id' => 'wiki:syntax')); 25 26 // check description meta headers 27 $this->assertStringContainsString( 28 'DokuWiki supports some simple markup language', 29 $response->queryHTML('meta[name="description"]')->attr('content') 30 ); 31 } 32} 33