Make specification tests explicit

This commit is contained in:
Torsten Dittmann committed 2026-06-22 22:06:56 +04:00
1 parent 23be75a87f
commit bd98555876
3 files changed
+2 -7

No files matched your search

@@ -178,11 +178,6 @@ class Update extends Base
$framework = $site->getAttribute('framework');
}
$missingParam = new \stdClass();
if ($request->getPayload('buildSpecification', $missingParam) === $missingParam) {
$buildSpecification = $site->getAttribute('buildSpecification', APP_COMPUTE_SPECIFICATION_DEFAULT);
}
$repositoryId = $site->getAttribute('repositoryId', '');
$repositoryInternalId = $site->getAttribute('repositoryInternalId', '');
@@ -200,7 +200,7 @@ final class FunctionsCustomServerTest extends Scope
public function testListSpecs(): void
{
$specifications = $this->listSpecifications();
$specifications = $this->listSpecifications(['type' => 'runtimes']);
$this->assertEquals(200, $specifications['headers']['status-code']);
$this->assertGreaterThanOrEqual(2, $specifications['body']['total']);
$this->assertArrayHasKey(0, $specifications['body']['specifications']);
@@ -26,7 +26,7 @@ final class SitesCustomServerTest extends Scope
public function testListSpecs(): void
{
$specifications = $this->listSpecifications();
$specifications = $this->listSpecifications(['type' => 'runtimes']);
$this->assertEquals(200, $specifications['headers']['status-code']);
$this->assertGreaterThanOrEqual(2, $specifications['body']['total']);
$this->assertArrayHasKey(0, $specifications['body']['specifications']);