1
0
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:
Awilum
2022-05-22 10:21:13 +03:00
parent 59fd3042ca
commit 783bb7e73b

View File

@@ -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']);