A free open source IT asset/license management system
Update test macros
Marcus Mooredc3a16c437a3
diff --git a/tests/Support/CustomTestMacros.php b/tests/Support/CustomTestMacros.phpindex 22045e7fac..4ad3e0e247 100644--- a/tests/Support/CustomTestMacros.php+++ b/tests/Support/CustomTestMacros.php@@ -161,7 +161,8 @@ trait CustomTestMacrosforeach ($needles as $needle) {Assert::assertTrue(- $records->contains($needle)+ $records->contains($needle),+ "Response did not contain the expected value: {$needle}");}@@ -180,12 +181,22 @@ trait CustomTestMacrosforeach ($needles as $needle) {Assert::assertFalse(- $records->contains($needle)+ $records->contains($needle),+ "Response contained unexpected value: {$needle}");}return $this;});++ TestResponse::macro(+ 'assertCsvHeader',+ function () {+ $this->assertHeader('content-type', 'text/csv; charset=utf-8');++ return $this;+ }+ );}}