f84bcaec01
I wanted to ensure that all pages (even the downtime page, terms page, home page, etc) had the appropriate `data-` attributes on `<body>` (because those are required for certain javascript, eg autocomplete, to work). One thing led to another and now everything in `head` is microhtml'ed
30 lines
843 B
PHP
30 lines
843 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shimmie2;
|
|
|
|
class SiteDescriptionTest extends ShimmiePHPUnitTestCase
|
|
{
|
|
public function testSiteDescription(): void
|
|
{
|
|
global $config, $page;
|
|
$config->set_string("site_description", "A Shimmie testbed");
|
|
$this->get_page("post/list");
|
|
$this->assertStringContainsString(
|
|
"<meta name='description' content='A Shimmie testbed' />",
|
|
(string)$page->get_all_html_headers()
|
|
);
|
|
}
|
|
|
|
public function testSiteKeywords(): void
|
|
{
|
|
global $config, $page;
|
|
$config->set_string("site_keywords", "foo,bar,baz");
|
|
$this->get_page("post/list");
|
|
$this->assertStringContainsString(
|
|
"<meta name='keywords' content='foo,bar,baz' />",
|
|
(string)$page->get_all_html_headers()
|
|
);
|
|
}
|
|
}
|