2009-07-19 19:35:46 +01:00
|
|
|
<?php
|
2019-05-28 17:59:38 +01:00
|
|
|
class SiteDescriptionTest extends ShimmiePHPUnitTestCase
|
|
|
|
{
|
|
|
|
public function testSiteDescription()
|
|
|
|
{
|
|
|
|
global $config, $page;
|
|
|
|
$config->set_string("site_description", "A Shimmie testbed");
|
|
|
|
$this->get_page("post/list");
|
2019-11-21 17:16:11 +00:00
|
|
|
$this->assertStringContainsString(
|
2019-05-28 17:59:38 +01:00
|
|
|
'<meta name="description" content="A Shimmie testbed">',
|
|
|
|
$page->get_all_html_headers()
|
|
|
|
);
|
|
|
|
}
|
2009-07-19 19:35:46 +01:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
public function testSiteKeywords()
|
|
|
|
{
|
|
|
|
global $config, $page;
|
|
|
|
$config->set_string("site_keywords", "foo,bar,baz");
|
|
|
|
$this->get_page("post/list");
|
2019-11-21 17:16:11 +00:00
|
|
|
$this->assertStringContainsString(
|
2019-05-28 17:59:38 +01:00
|
|
|
'<meta name="keywords" content="foo,bar,baz">',
|
|
|
|
$page->get_all_html_headers()
|
|
|
|
);
|
|
|
|
}
|
2009-07-19 19:35:46 +01:00
|
|
|
}
|