2009-07-19 19:35:46 +01:00
|
|
|
<?php
|
2015-09-20 20:44:34 +01:00
|
|
|
class SiteDescriptionTest extends ShimmiePHPUnitTestCase {
|
2015-09-26 11:17:13 +01:00
|
|
|
public function testSiteDescription() {
|
2015-09-20 20:44:34 +01:00
|
|
|
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
|
|
|
|
);
|
|
|
|
}
|
2009-07-19 19:35:46 +01:00
|
|
|
|
2015-09-26 11:17:13 +01:00
|
|
|
public function testSiteKeywords() {
|
2015-09-20 20:44:34 +01:00
|
|
|
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
|
|
|
|
);
|
2009-07-19 19:35:46 +01:00
|
|
|
}
|
|
|
|
}
|
2014-04-25 22:54:51 -04:00
|
|
|
|