diff --git a/tests/src/flextype/core/Entries/EntriesTest.php b/tests/src/flextype/core/Entries/EntriesTest.php index 9f1bb5c9..ee54be8c 100644 --- a/tests/src/flextype/core/Entries/EntriesTest.php +++ b/tests/src/flextype/core/Entries/EntriesTest.php @@ -89,6 +89,12 @@ test('get cache ID for entry with cache enabled true', function () { expect(strlen(entries()->getCacheID('foo')))->toEqual(32); }); +test('get cache ID for entry with cache enabled true and with salt', function () { + registry()->set('flextype.settings.cache.enabled', true); + expect(entries()->create('foo', []))->toBeTrue(); + expect(strlen(entries()->getCacheID('foo', 'Foo')))->toEqual(32); +}); + test('registry for entry', function() { entries()->registry()->set('foo', ['title' => 'Foo']); expect(entries()->registry()->get('foo.title'))->toEqual('Foo');