2015-09-20 20:44:34 +01:00

24 lines
590 B
PHP

<?php
class SiteDescriptionTest extends ShimmiePHPUnitTestCase {
function testSiteDescription() {
global $config, $page;
$config->set_string("site_description", "A Shimmie testbed");
$this->get_page("post/list");
$this->assertContains(
'<meta name="description" content="A Shimmie testbed">',
$page->html_headers
);
}
function testSiteKeywords() {
global $config, $page;
$config->set_string("site_keywords", "foo,bar,baz");
$this->get_page("post/list");
$this->assertContains(
'<meta name="keywords" content="foo,bar,baz">',
$page->html_headers
);
}
}