fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -21,11 +21,11 @@ class ApiSchoolCalendarAcademicBoundaryExpansionTest extends FullSurfaceE2EContr
$uri = $route->uri();
$payload = $this->payloadFor($method, $uri) + ['date' => $date, 'due_date' => $date, 'exam_date' => $date];
$response = $method === 'GET'
? $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri).'?date='.urlencode($date))
? $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri) . '?date=' . urlencode($date))
: $this->requestAs($this->actorFor($uri), $method, $uri, $payload);
$this->assertControlled($response, $method, $uri);
$this->assertNoServerError($response, 'academic boundary date '.$date.' at '.$method.' '.$uri);
$this->assertNoServerError($response, 'academic boundary date ' . $date . ' at ' . $method . ' ' . $uri);
}
}
}
@@ -39,11 +39,11 @@ class ApiSchoolCalendarAcademicBoundaryExpansionTest extends FullSurfaceE2EContr
$uri = $route->uri();
$payload = $this->payloadFor($method, $uri) + ['semester' => 'admin', 'term' => '../../secret', 'quarter' => '<script>1</script>'];
$response = $method === 'GET'
? $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri).'?semester=admin&term=../../secret')
? $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri) . '?semester=admin&term=../../secret')
: $this->requestAs($this->actorFor($uri), $method, $uri, $payload);
$this->assertControlled($response, $method, $uri);
$this->assertNoServerError($response, 'bad semester/term values at '.$method.' '.$uri);
$this->assertNoServerError($response, 'bad semester/term values at ' . $method . ' ' . $uri);
}
}
}