Skip to content

Commit

Permalink
Simplify relative path to webapp/public in webapp/tests/*
Browse files Browse the repository at this point in the history
There is no need to repeat the common prefix "webapp/". In fact
earlier in the same file it was already using the simpler path.
  • Loading branch information
tom93 committed Jul 29, 2024
1 parent 70c662e commit d641c25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function testProblemsetManagement(): void
self::assertArrayNotHasKey('problemset', $object);

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

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

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

Expand Down

0 comments on commit d641c25

Please sign in to comment.