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:
@@ -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"));
|
||||
});
|
||||
|
Reference in New Issue
Block a user