mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Make specification tests explicit
This commit is contained in:
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']);
|
||||
|
||||
Reference in new issue
Block a user