Skip to content

Commit 597e622

Browse files
tom93vmcj
authored andcommitted
Simplify relative path to webapp/public in webapp/tests/*
There is no need to repeat the common prefix "webapp/". In fact earlier in the same file it was already using the simpler path.
1 parent 271ee22 commit 597e622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/tests/Unit/Controller/API/ContestControllerAdminTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function testProblemsetManagement(): void
175175
self::assertArrayNotHasKey('problemset', $object);
176176

177177
// Now upload a problemset
178-
$problemsetFile = __DIR__ . '/../../../../../webapp/public/doc/logos/DOMjudgelogo.pdf';
178+
$problemsetFile = __DIR__ . '/../../../../public/doc/logos/DOMjudgelogo.pdf';
179179
$problemset = new UploadedFile($problemsetFile, 'DOMjudgelogo.pdf');
180180
$this->verifyApiJsonResponse('POST', $url . '/problemset', 204, $this->apiUser, null, ['problemset' => $problemset]);
181181

@@ -199,7 +199,7 @@ public function testProblemsetManagement(): void
199199
self::assertEquals(file_get_contents($problemsetFile), $callbackData);
200200

201201
// Upload the problemset again, this time using PUT to also test that
202-
$problemsetFile = __DIR__ . '/../../../../../webapp/public/doc/logos/DOMjudgelogo.pdf';
202+
$problemsetFile = __DIR__ . '/../../../../public/doc/logos/DOMjudgelogo.pdf';
203203
$problemset = new UploadedFile($problemsetFile, 'DOMjudgelogo.pdf');
204204
$this->verifyApiJsonResponse('PUT', $url . '/problemset', 204, $this->apiUser, null, ['problemset' => $problemset]);
205205

0 commit comments

Comments
 (0)