From d590281443682293b837c9e858aad9ba6753f6b1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 11 Dec 2020 14:26:08 +0300 Subject: [PATCH] feat(tests): try to fix tests for php8 in entries fetch #477 --- tests/Foundation/Entries/EntriesTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Foundation/Entries/EntriesTest.php b/tests/Foundation/Entries/EntriesTest.php index f9a7b795..18ba2c51 100644 --- a/tests/Foundation/Entries/EntriesTest.php +++ b/tests/Foundation/Entries/EntriesTest.php @@ -33,9 +33,11 @@ test('test fetch() entry', function () { flextype('entries')->create('foo/baz', ['title' => 'Baz']); flextype('entries')->create('foo/zed', ['title' => 'Zed']); + flextype('registry')->set('flextype.settings.cache.enabled', false); dump(flextype('entries')->fetch('foo')); dump(flextype('entries')->fetch('foo')); - dump(flextype('entries')->fetch('foo', ['collection' => false])); + flextype('registry')->set('flextype.settings.cache.enabled', true); + //dump(flextype('entries')->fetch('foo', ['collection' => false])); // $this->assertEquals(12, flextype('entries')->fetch('foo')->count()); // $this->assertEquals(12, flextype('entries')->fetch('foo', ['collection' => false])->count());