@@ -35,7 +35,7 @@ public function test_can_parse_markdown_file()
35
35
{
36
36
file_put_contents (Hyde::path ('_posts/test-post.md ' ), 'Foo bar ' );
37
37
38
- $ document = (new MarkdownFileParser (Hyde:: path ('_posts/test-post.md ' )))->get ();
38
+ $ document = (new MarkdownFileParser (('_posts/test-post.md ' )))->get ();
39
39
$ this ->assertInstanceOf (MarkdownDocument::class, $ document );
40
40
41
41
$ this ->assertEquals ('Foo bar ' , $ document ->markdown );
@@ -45,7 +45,7 @@ public function test_can_parse_markdown_file_with_front_matter()
45
45
{
46
46
$ this ->makeTestPost ();
47
47
48
- $ document = (new MarkdownFileParser (Hyde:: path ('_posts/test-post.md ' )))->get ();
48
+ $ document = (new MarkdownFileParser (('_posts/test-post.md ' )))->get ();
49
49
$ this ->assertInstanceOf (MarkdownDocument::class, $ document );
50
50
51
51
$ this ->assertEquals (FrontMatter::fromArray ([
@@ -64,7 +64,7 @@ public function test_parsed_markdown_post_contains_valid_front_matter()
64
64
{
65
65
$ this ->makeTestPost ();
66
66
67
- $ post = (new MarkdownFileParser (Hyde:: path ('_posts/test-post.md ' )))->get ();
67
+ $ post = (new MarkdownFileParser (('_posts/test-post.md ' )))->get ();
68
68
$ this ->assertEquals ('My New Post ' , $ post ->matter ('title ' ));
69
69
$ this ->assertEquals ('Mr. Hyde ' , $ post ->matter ('author ' ));
70
70
$ this ->assertEquals ('blog ' , $ post ->matter ('category ' ));
@@ -74,7 +74,7 @@ public function test_parsed_front_matter_does_not_contain_slug_key()
74
74
{
75
75
file_put_contents (Hyde::path ('_posts/test-post.md ' ), "--- \nslug: foo \n--- \n" );
76
76
77
- $ post = (new MarkdownFileParser (Hyde:: path ('_posts/test-post.md ' )))->get ();
77
+ $ post = (new MarkdownFileParser (('_posts/test-post.md ' )))->get ();
78
78
$ this ->assertNull ($ post ->matter ('slug ' ));
79
79
$ this ->assertEquals (FrontMatter::fromArray ([]), $ post ->matter );
80
80
}
@@ -83,7 +83,7 @@ public function test_static_parse_shorthand()
83
83
{
84
84
$ this ->makeTestPost ();
85
85
86
- $ post = MarkdownFileParser::parse (Hyde:: path ('_posts/test-post.md ' ));
86
+ $ post = MarkdownFileParser::parse (('_posts/test-post.md ' ));
87
87
$ this ->assertEquals ('My New Post ' , $ post ->matter ('title ' ));
88
88
$ this ->assertEquals ('Mr. Hyde ' , $ post ->matter ('author ' ));
89
89
$ this ->assertEquals ('blog ' , $ post ->matter ('category ' ));
0 commit comments