26 lines
		
	
	
		
			788 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			788 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php declare(strict_types=1);
 | |
| class SiteDescriptionTest extends ShimmiePHPUnitTestCase
 | |
| {
 | |
|     public function testSiteDescription()
 | |
|     {
 | |
|         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">',
 | |
|             $page->get_all_html_headers()
 | |
|         );
 | |
|     }
 | |
| 
 | |
|     public function testSiteKeywords()
 | |
|     {
 | |
|         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">',
 | |
|             $page->get_all_html_headers()
 | |
|         );
 | |
|     }
 | |
| }
 |