Skip to content

Commit c42b1bf

Browse files
committed
test: fix incorrect assertions
1 parent 9dd7e25 commit c42b1bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/Helpers/URLHelper/CurrentUrlTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testUriStringAbsolute()
145145

146146
Services::injectMock('request', $request);
147147

148-
$this->assertSame('/assets/image.jpg', uri_string());
148+
$this->assertSame('assets/image.jpg', uri_string());
149149
}
150150

151151
public function testUriStringRelative()
@@ -172,7 +172,7 @@ public function testUriStringNoTrailingSlashAbsolute()
172172

173173
Services::injectMock('request', $request);
174174

175-
$this->assertSame('/assets/image.jpg', uri_string());
175+
$this->assertSame('assets/image.jpg', uri_string());
176176
}
177177

178178
public function testUriStringNoTrailingSlashRelative()
@@ -220,7 +220,7 @@ public function testUriStringSubfolderAbsolute()
220220

221221
Services::injectMock('request', $request);
222222

223-
$this->assertSame('/subfolder/assets/image.jpg', uri_string());
223+
$this->assertSame('subfolder/assets/image.jpg', uri_string());
224224
}
225225

226226
public function testUriStringSubfolderRelative()

0 commit comments

Comments
 (0)