mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 06:06:45 +02:00
feat(tests): add tests for Serializer Frontmatter getCacheID() #477
This commit is contained in:
@@ -15,3 +15,11 @@ test('test decode() method', function () {
|
||||
flextype('frontmatter')
|
||||
->decode("---\ntitle: Foo\n---\nBar"));
|
||||
});
|
||||
|
||||
test('test getCacheID() method', function () {
|
||||
$string = "---\ntitle: Foo\n---\nBar";
|
||||
$cache_id = flextype('frontmatter')
|
||||
->getCacheID($string);
|
||||
$this->assertEquals(32, strlen($cache_id));
|
||||
$this->assertNotEquals($string, $cache_id);
|
||||
});
|
||||
|
Reference in New Issue
Block a user