more phpunit

This commit is contained in:
Shish 2019-11-21 17:18:43 +00:00
parent 1e4f08e9e9
commit 849d04bf7a
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ class BulkAddTest extends ShimmiePHPUnitTestCase
$bae = new BulkAddEvent('asdf');
send_event($bae);
$this->assertStringContainsString(
$this->assertContains(
"Error, asdf is not a readable directory",
$bae->results,
implode("\n", $bae->results)

View file

@ -83,7 +83,7 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase
protected function assert_no_title(string $title)
{
global $page;
$this->assertNotContains($title, $page->title);
$this->assertStringNotContainsString($title, $page->title);
}
protected function assert_response(int $code)
@ -112,7 +112,7 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase
protected function assert_no_text(string $text, string $section=null)
{
$this->assertNotContains($text, $this->page_to_text($section));
$this->assertStringNotContainsString($text, $this->page_to_text($section));
}
protected function assert_content(string $content)
@ -124,7 +124,7 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase
protected function assert_no_content(string $content)
{
global $page;
$this->assertNotContains($content, $page->data);
$this->assertStringNotContainsString($content, $page->data);
}
// user things