1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

feat(tests): add tests for Entries #477

This commit is contained in:
Awilum
2020-11-19 14:07:26 +03:00
parent daa99763f0
commit 73c33797a8

View File

@@ -44,9 +44,10 @@ test('test fetch() method', function () {
// 4
flextype('entries')->create('foo', []);
flextype('entries')->create('foo/bar', []);
flextype('entries')->create('foo/baz', []);
flextype('entries')->create('foo/baz', ['foo' => ['bar' => 'zed']]);
$fetch = flextype('entries')->fetch('foo', true);
$this->assertTrue(count($fetch) > 0);
});
test('test fetchSingle() method', function () {