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

feat(tests): improve tests for helpers

This commit is contained in:
Awilum
2021-09-28 23:03:52 +03:00
parent 851c029372
commit 7689cc9438

View File

@@ -167,9 +167,10 @@ test('filterCollection helper', function () {
$this->assertEquals(['home' => ['title' => 'Home']],
filterCollection($data, ['return' => 'all',
'only' => ['home']]));
$this->assertEquals(['home' => ['title' => 'Home']],
filterCollection($data, ['return' => 'all',
'only' => ['home']]));
'except' => ['blog', 'about']]));
// param: where and return: all
$this->assertEquals(['about' => ['title' => 'About']],