-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6814 from getkirby/fix/6786-file-preview-links
Fix file preview links
- Loading branch information
Showing
2 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -769,7 +769,7 @@ public function testPreviewUrlUnauthenticated() | |
]); | ||
|
||
$file = $page->file('test.pdf'); | ||
$this->assertNull($file->previewUrl()); | ||
$this->assertSame('/media/pages/test/' . $file->mediaHash() . '/test.pdf', $file->previewUrl()); | ||
} | ||
|
||
public function testPreviewUrlForDraft() | ||
|
@@ -852,7 +852,7 @@ public function testPreviewUrlForPageWithDeniedPreviewSetting() | |
$app->impersonate('[email protected]'); | ||
|
||
$file = $app->file('test/test.pdf'); | ||
$this->assertNull($file->previewUrl()); | ||
$this->assertSame('/media/pages/test/' . $file->mediaHash() . '/test.pdf', $file->previewUrl()); | ||
} | ||
|
||
public function testPreviewUrlForPageWithCustomPreviewSetting() | ||
|