mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 06:06:45 +02:00
feat(tests): update tests for entires
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user