From b27e851f6db629e9f1e8585ab2704ef9430c01db Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 11 Dec 2020 14:33:38 +0300 Subject: [PATCH] feat(tests): try to fix tests for php8 in entries fetch #477 --- tests/Foundation/Entries/EntriesTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Foundation/Entries/EntriesTest.php b/tests/Foundation/Entries/EntriesTest.php index 055665d7..6c728bfb 100644 --- a/tests/Foundation/Entries/EntriesTest.php +++ b/tests/Foundation/Entries/EntriesTest.php @@ -33,12 +33,12 @@ 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); + //flextype('registry')->set('flextype.settings.cache.enabled', false); dump(flextype('entries')->fetch('foo')); dump(flextype('entries')->fetch('foo')); $this->assertEquals(12, flextype('entries')->fetch('foo')->count()); $this->assertEquals(12, flextype('entries')->fetch('foo', ['collection' => false])->count()); - flextype('registry')->set('flextype.settings.cache.enabled', true); + //flextype('registry')->set('flextype.settings.cache.enabled', true); //dump(flextype('entries')->fetch('foo', ['collection' => false])); // $this->assertEquals(12, flextype('entries')->fetch('foo')->count());