This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/site_description/test.php
2015-09-26 11:17:13 +01:00

23 lines
604 B
PHP

<?php
class SiteDescriptionTest extends ShimmiePHPUnitTestCase {
public 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
);
}
public 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
);
}
}