more phpunit
This commit is contained in:
		
							parent
							
								
									1e4f08e9e9
								
							
						
					
					
						commit
						849d04bf7a
					
				| @ -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) | ||||
|  | ||||
| @ -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
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user