From 783bb7e73bb37dcf49fef2d06cc2abb627e54ab2 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 22 May 2022 10:21:13 +0300 Subject: [PATCH] feat(tests): improve tests for directives --- .../src/flextype/core/Entries/Directives/TypesDirectiveTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/flextype/core/Entries/Directives/TypesDirectiveTest.php b/tests/src/flextype/core/Entries/Directives/TypesDirectiveTest.php index 06129fa9..d08315ca 100644 --- a/tests/src/flextype/core/Entries/Directives/TypesDirectiveTest.php +++ b/tests/src/flextype/core/Entries/Directives/TypesDirectiveTest.php @@ -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']);