From 31ede930e596a5a243d45e89113d2673bdb13af0 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 2 May 2022 22:00:54 +0300 Subject: [PATCH] feat(tests): add tests for helpers --- tests/src/flextype/HelpersTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/flextype/HelpersTest.php b/tests/src/flextype/HelpersTest.php index 4ebf0adc..d33a1043 100644 --- a/tests/src/flextype/HelpersTest.php +++ b/tests/src/flextype/HelpersTest.php @@ -103,11 +103,11 @@ test('collection helper', function () { }); test('collectionFromJson helper', function () { - $this->assertEquals(['foo'], collectionFromJson("{\"foo\"}")->toArray()); + $this->assertEquals(['foo'], collectionFromJson("[\"foo\"]")->toArray()); }); test('collectionFromString helper', function () { - $this->assertEquals(['foo', 'bar'], collectionFromString('foo, bar', ',')->toArray()); + $this->assertEquals(['foo', 'bar'], collectionFromString('foo,bar', ',')->toArray()); }); test('collectionWithRange helper', function () {