Skip to content

Commit

Permalink
test for setting the title config
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jun 30, 2012
1 parent 0a16cff commit 430db12
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _test/tests/conf/title.test.php
@@ -0,0 +1,19 @@
<?php

class conf_title_test extends DokuWikiTest {

function testTitle() {
global $conf;

$request = new TestRequest();
$response = $request->get();
$content = $response->queryHTML('title');
$this->assertTrue(strpos($content,$conf['title']) > 0);

$conf['title'] = 'Foo';
$request = new TestRequest();
$response = $request->get();
$content = $response->queryHTML('title');
$this->assertTrue(strpos($content,'Foo') > 0);
}
}

0 comments on commit 430db12

Please sign in to comment.