Skip to content

Commit

Permalink
Add additional fixture for test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 23, 2024
1 parent 10c2809 commit a2f4219
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/framework/tests/Feature/DataCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ public function testYamlCollections()
{
$this->directory('resources/collections/foo');
$this->markdown('resources/collections/foo/foo.yaml', matter: ['title' => 'Foo']);
$this->file('resources/collections/foo/bar.yml');
$this->file('resources/collections/foo/bar.yml', "---\ntitle: Bar\n---");
$this->file('resources/collections/foo/baz.yml');

$this->assertEquals(new DataCollections([
'foo/foo.yaml' => new FrontMatter(['title' => 'Foo']),
'foo/bar.yml' => new FrontMatter([]),
'foo/bar.yml' => new FrontMatter(['title' => 'Bar']),
'foo/baz.yml' => new FrontMatter([]),
]), DataCollections::yaml('foo'));
}

Expand Down

0 comments on commit a2f4219

Please sign in to comment.