Add assertHasAllContent
This commit is contained in:
parent
68d4f38e31
commit
f075f67526
|
@ -35,6 +35,16 @@ abstract class Document
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<int, string> $content
|
||||
*/
|
||||
public function assertHasAllContent(array $content): void
|
||||
{
|
||||
foreach ($content as $test) {
|
||||
$this->assertHasContent($test);
|
||||
}
|
||||
}
|
||||
|
||||
public function hasContent(string $content): bool
|
||||
{
|
||||
return str_contains($this->renderBody(), $content);
|
||||
|
|
Loading…
Reference in New Issue