1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(tests): add tests for helpers

This commit is contained in:
Awilum
2022-05-02 22:00:54 +03:00
parent cd8dec0810
commit 31ede930e5

View File

@@ -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 () {