From 90a37129354fbc7702b89bb01dc75a892b86b48c Mon Sep 17 00:00:00 2001 From: jcsoriano Date: Sat, 9 Mar 2024 17:14:43 +0800 Subject: [PATCH] Fix test --- tests/Support/SupportCollectionTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Support/SupportCollectionTest.php b/tests/Support/SupportCollectionTest.php index a9f6c11951cb..404a2f09be4c 100755 --- a/tests/Support/SupportCollectionTest.php +++ b/tests/Support/SupportCollectionTest.php @@ -4606,6 +4606,9 @@ public function testDump($collection) VarDumper::setHandler(null); } + /** + * @dataProvider collectionClassProvider + */ public function testDumpArray($collection) { $log = new Collection; @@ -4613,13 +4616,11 @@ public function testDumpArray($collection) $log->add($value); }); - $collection = new Collection([ + (new $collection([ 'one', (new Model())->forceFill(['id' => 2]), 3, - ]); - - $collection->dumpArray( + ]))->dumpArray( (new Model())->forceFill(['id' => 4]), 'five', );