mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
feat(tests): improve tests for directives
This commit is contained in:
@@ -36,6 +36,7 @@ test('types directive', function () {
|
||||
$this->assertEquals([1,2,3,4,5], entries()->fetch('type-array-2')['foo']);
|
||||
$this->assertEquals(['foo' => 'Foo'], entries()->fetch('type-array-3')['foo']);
|
||||
$this->assertEquals(['foo' => ''], entries()->fetch('type-array-4')['foo']);
|
||||
$this->assertEquals(['foo' => ''], entries()->fetch('type-collection')['foo']->toArray());
|
||||
$this->assertEquals(null, entries()->fetch('type-null')['foo']);
|
||||
$this->assertEquals('foo', entries()->fetch('type-string')['foo']);
|
||||
$this->assertEquals('{"foo":"Foo"}', entries()->fetch('type-json')['foo']);
|
||||
|
Reference in New Issue
Block a user