Skip to content

A free open source IT asset/license management system

Remove duplicate macros

Marcus Moore5ff03eec5237
diff --git a/tests/Support/CustomTestMacros.php b/tests/Support/CustomTestMacros.php
index 121588cf67..22045e7fac 100644
--- a/tests/Support/CustomTestMacros.php
+++ b/tests/Support/CustomTestMacros.php
@@ -12,32 +12,6 @@ trait CustomTestMacros
{
protected function registerCustomMacros()
{
- TestResponse::macro(
- 'assertSeeTextInStreamedResponse',
- function (string $needle): self {
- Assert::assertTrue(
- collect(Reader::createFromString($this->streamedContent())->getRecords())
- ->flatten()
- ->contains($needle)
- );
-
- return $this;
- }
- );
-
- TestResponse::macro(
- 'assertDontSeeTextInStreamedResponse',
- function (string $needle): self {
- Assert::assertFalse(
- collect(Reader::createFromString($this->streamedContent())->getRecords())
- ->flatten()
- ->contains($needle)
- );
-
- return $this;
- }
- );
-
$guardAgainstNullProperty = function (Model $model, string $property) {
if (is_null($model->{$property})) {
throw new RuntimeException(