Skip to content

Commit

Permalink
PHP unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tblivet committed Dec 4, 2024
1 parent af8d024 commit dbc69ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/Twig/AssetsEnvironmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function testGetAssetsBaseUrlReturnsDevUrlInDevMode()

public function testGetAssetsBaseUrlReturnsProductionUrl()
{
$expectedUrl = 'http://localhost/modules/autoupgrade/views';
$expectedUrl = '/modules/autoupgrade/views';
$server = [
'HTTP_HOST' => 'localhost',
'SERVER_PORT' => '80',
Expand Down Expand Up @@ -100,7 +100,7 @@ public function testGetAssetsBaseUrlReturnsProductionUrlWithShopInSubFolder()

$request = new Request([], [], [], [], [], $server);

$expectedUrl = 'http://localhost/hello-world/modules/autoupgrade/views';
$expectedUrl = '/modules/autoupgrade/views';
$this->assertSame($expectedUrl, $this->assetsEnvironment->getAssetsBaseUrl($request));
}

Expand All @@ -117,7 +117,7 @@ public function testGetAssetsBaseUrlReturnsProductionUrlWithCustomEntrypoint()

$request = new Request([], [], [], [], [], $server);

$expectedUrl = 'http://localhost/modules/autoupgrade/views';
$expectedUrl = '/modules/autoupgrade/views';
$this->assertSame($expectedUrl, $this->assetsEnvironment->getAssetsBaseUrl($request));
}

Expand All @@ -134,7 +134,7 @@ public function testGetAssetsBaseUrlReturnsProductionUrlWithShopInSubFolderAndPa

$request = new Request([], [], [], [], [], $server);

$expectedUrl = 'http://localhost/hello-world/modules/autoupgrade/views';
$expectedUrl = '/modules/autoupgrade/views';
$this->assertSame($expectedUrl, $this->assetsEnvironment->getAssetsBaseUrl($request));
}
}

0 comments on commit dbc69ef

Please sign in to comment.