From 21bce813daf171d982df59136299001309083bba Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 2 May 2022 21:56:23 +0300 Subject: [PATCH] feat(tests): add tests for helpers --- tests/src/flextype/HelpersTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/flextype/HelpersTest.php b/tests/src/flextype/HelpersTest.php index dfb6b4a4..4ebf0adc 100644 --- a/tests/src/flextype/HelpersTest.php +++ b/tests/src/flextype/HelpersTest.php @@ -99,19 +99,19 @@ test('slugify helper', function () { }); test('collection helper', function () { - $this->assertEquals([], collection([])); + $this->assertEquals([], collection([])->toArray()); }); test('collectionFromJson helper', function () { - $this->assertEquals(['foo'], collectionFromJson("{\"foo\"}")); + $this->assertEquals(['foo'], collectionFromJson("{\"foo\"}")->toArray()); }); test('collectionFromString helper', function () { - $this->assertEquals(['foo', 'bar'], collectionFromString('foo, bar', ',')); + $this->assertEquals(['foo', 'bar'], collectionFromString('foo, bar', ',')->toArray()); }); test('collectionWithRange helper', function () { - $this->assertEquals([0, 1], collectionWithRange(0, 1, 1)); + $this->assertEquals([0, 1], collectionWithRange(0, 1, 1)->toArray()); }); test('filterCollection helper', function () {