diff --git a/tests/src/flextype/macros/CollectionTest.php b/tests/src/flextype/macros/CollectionTest.php new file mode 100644 index 00000000..dc17758f --- /dev/null +++ b/tests/src/flextype/macros/CollectionTest.php @@ -0,0 +1,11 @@ + ['post-1' => 'Post 1', 'post-2' => 'Post 2']])->onlyFromCollection(['post-2'])->toArray())->toBe(['blog' => ['post-2' => 'Post 2']]); +}); + +test('exceptFromCollection macros', function () { + expect(collection(['blog' => ['post-1' => 'Post 1', 'post-2' => 'Post 2']])->exceptFromCollection(['post-1'])->toArray())->toBe(['blog' => ['post-2' => 'Post 2']]); +}); \ No newline at end of file