Skip to content

Commit

Permalink
chore: solve test for image url for current trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Jun 23, 2024
1 parent 1a09330 commit 2aa1089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3" ]
version: [ "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk" ]
php-version: [ "8.2" ]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/MediaUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testMediaUrlWithInactiveConfigResultsInOriginalMedia(): void
$fixture = $this->mediaFixtures['NamedMimePngEtxPngWithFolder'];
$media = $this->getPngWithFolder();

static::assertMatchesRegularExpression('/http:\/\/localhost:8000\/.*pngFileWithExtensionAndFolder\.png\?\d.*/', $media->getUrl());
static::assertMatchesRegularExpression('/http:\/\/localhost:8000\/media\/_test\/pngFileWithExtensionAndFolder\.png\?(\d+|ts=\d+)/', $media->getUrl());

$folderName = null;
if (\is_array($fixture['mediaFolder']) && !empty($fixture['mediaFolder']['name'])) {
Expand Down

0 comments on commit 2aa1089

Please sign in to comment.