Skip to content

A free open source IT asset/license management system

Fix assertSeeTextInStreamedResponse and assertDontSeeTextInStreamedResponse macros

Marcus Moore02383aad7b78
diff --git a/tests/Support/CustomTestMacros.php b/tests/Support/CustomTestMacros.php
index a214d077c5..0b2c00f816 100644
--- a/tests/Support/CustomTestMacros.php
+++ b/tests/Support/CustomTestMacros.php
@@ -155,7 +155,7 @@ trait CustomTestMacros
function (string $needle) {
Assert::assertTrue(
collect(Reader::createFromString($this->streamedContent())->getRecords())
- ->pluck(0)
+ ->flatten()
->contains($needle)
);
@@ -168,7 +168,7 @@ trait CustomTestMacros
function (string $needle) {
Assert::assertFalse(
collect(Reader::createFromString($this->streamedContent())->getRecords())
- ->pluck(0)
+ ->flatten()
->contains($needle)
);