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:
@@ -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']],
|
||||
|
Reference in New Issue
Block a user