Skip to content

A free open source IT asset/license management system

Fix test macros

Marcus Mooree98f73d2fc59
diff --git a/tests/Support/CustomTestMacros.php b/tests/Support/CustomTestMacros.php
index 157ed988e5..085061cd19 100644
--- a/tests/Support/CustomTestMacros.php
+++ b/tests/Support/CustomTestMacros.php
@@ -17,7 +17,7 @@ trait CustomTestMacros
function (string $needle): self {
Assert::assertTrue(
collect(Reader::createFromString($this->streamedContent())->getRecords())
- ->pluck(0)
+ ->flatten()
->contains($needle)
);
@@ -30,7 +30,7 @@ trait CustomTestMacros
function (string $needle): self {
Assert::assertFalse(
collect(Reader::createFromString($this->streamedContent())->getRecords())
- ->pluck(0)
+ ->flatten()
->contains($needle)
);