1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(tests): add tests for Serializer Frontmatter decode #477

This commit is contained in:
Awilum
2020-10-21 10:47:17 +03:00
parent 81c61d7248
commit 6aad90d320

View File

@@ -8,3 +8,10 @@ test('test encode() method', function () {
->encode(['title' => 'Foo',
'content' => 'Bar']));
});
test('test decode() method', function () {
$this->assertEquals(['title' => 'Foo',
'content' => 'Bar'],
flextype('frontmatter')
->decode("---\ntitle: Foo\n---\nBar"));
});