Skip to content

Commit

Permalink
Merge branch '5.0' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 6, 2023
2 parents 474edb5 + 1289f01 commit 9936712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/BaseElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function testPreviewLink(string $class, string $elementIdentifier, ?strin
{
/** @var BaseElement $element */
$element = $this->objFromFixture($class, $elementIdentifier);
$previewLink = $element->PreviewLink();
$previewLink = $element->PreviewLink() ?? '';
// Remove SubsiteID from preview link in case subsites is installed
$rx = '/[?|&]SubsiteID=[0-9]+/';
if (preg_match($rx, $previewLink)) {
Expand Down

0 comments on commit 9936712

Please sign in to comment.