updates for phpunit 8

This commit is contained in:
Shish
2019-11-21 17:16:11 +00:00
parent 4026181219
commit 1e4f08e9e9
5 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@ class SiteDescriptionTest extends ShimmiePHPUnitTestCase
global $config, $page;
$config->set_string("site_description", "A Shimmie testbed");
$this->get_page("post/list");
$this->assertContains(
$this->assertStringContainsString(
'<meta name="description" content="A Shimmie testbed">',
$page->get_all_html_headers()
);
@ -17,7 +17,7 @@ class SiteDescriptionTest extends ShimmiePHPUnitTestCase
global $config, $page;
$config->set_string("site_keywords", "foo,bar,baz");
$this->get_page("post/list");
$this->assertContains(
$this->assertStringContainsString(
'<meta name="keywords" content="foo,bar,baz">',
$page->get_all_html_headers()
);