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:
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user