diff --git a/tests/src/flextype/HelpersTest.php b/tests/src/flextype/HelpersTest.php index efcd4fe1..403f5822 100644 --- a/tests/src/flextype/HelpersTest.php +++ b/tests/src/flextype/HelpersTest.php @@ -163,6 +163,14 @@ test('filterCollection helper', function () { 'Blog' => [0 => ['title' => 'Blog']]], filterCollection($data, ['return' => 'all', 'group_by' => 'title'])); + + $this->assertEquals(['home' => ['title' => 'Home']], + filterCollection($data, ['return' => 'all', + 'only' => ['home']])); + $this->assertEquals(['home' => ['title' => 'Home']], + filterCollection($data, ['return' => 'all', + 'only' => ['home']])); + // param: where and return: all $this->assertEquals(['about' => ['title' => 'About']], filterCollection($data, ['return' => 'all',