Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendeksilverstripe committed Jul 28, 2023
1 parent ee16e1e commit 1004c9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/php/Models/LinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ protected function setUp(): void
$image->setFromLocalFile(Director::baseFolder() . '/tests/resources/600x400.png');
$image->write();
$image->publishSingle();

/** @var SiteTree $page */
$page = $this->objFromFixture(SiteTree::class, 'page-1');
$page->publishSingle();
}

protected function tearDown(): void
Expand Down Expand Up @@ -314,7 +318,7 @@ public function linkUrlCasesDataProvider(): array
'file link / with image' => [
'file-link-with-image',
FileLink::class,
'',
'/assets/ImageTest/600x400.png',
],
'file link / no image' => [
'file-link-no-image',
Expand Down

0 comments on commit 1004c9b

Please sign in to comment.