Skip to content

Commit

Permalink
Inline variables
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 29, 2022
1 parent 555455e commit 907fa06
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/framework/tests/Feature/FeaturedImageFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ public function testWithDataFromSchema()

public function testMakeMethodCreatesLocalImageWhenPathIsSet()
{
$array = [
'image.path' => 'path',
];

$factory = FeaturedImageFactory::make(new FrontMatter($array));

$this->assertInstanceOf(LocalFeaturedImage::class, $factory);
$this->assertInstanceOf(LocalFeaturedImage::class,
FeaturedImageFactory::make(new FrontMatter([
'image.path' => 'path',
])
));
}

public function testMakeMethodCreatesRemoteImageWhenUrlIsSet()
Expand Down

0 comments on commit 907fa06

Please sign in to comment.