1<?php
2
3
4/**
5 *
6 *
7 * @group template_strap
8 * @group templates
9 */
10class strapPhpTest extends DokuWikiTest
11{
12
13
14    /**
15     * A simple test to test that the template is working
16     * on every language
17     */
18    public function test_generator_base()
19    {
20
21
22        $pageId = 'start';
23        saveWikiText($pageId, "Content", 'Header Test base');
24        idx_addPage($pageId);
25
26        $request = new TestRequest();
27        $response = $request->get(array('id' => $pageId, '/doku.php'));
28        $expected = 'DokuWiki';
29
30        $generator = $response->queryHTML('meta[name="generator"]')->attr("content");
31        $this->assertEquals($expected, $generator);
32
33
34    }
35
36
37}
38