mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Fix V2 tests
This commit is contained in:
1 parent
f666a1e3a1
commit
bb0f40569f
2 files changed
+6
-2
No files matched your search
@@ -150,7 +150,11 @@ App::patch('/v1/mock/functions-v2')
|
||||
throw new Exception(Exception::FUNCTION_NOT_FOUND);
|
||||
}
|
||||
|
||||
$dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('version', 'v2'));
|
||||
$function = $function
|
||||
->setAttribute('version', 'v2')
|
||||
->setAttribute('runtime', 'php-8.0');
|
||||
|
||||
$dbForProject->updateDocument('functions', $function->getId(), $function);
|
||||
|
||||
$response->noContent();
|
||||
});
|
||||
|
||||
@@ -1422,7 +1422,7 @@ class FunctionsCustomServerTest extends Scope
|
||||
$functionId = $this->setupFunction([
|
||||
'functionId' => ID::unique(),
|
||||
'name' => 'Test PHP V2',
|
||||
'runtime' => 'php-8.3',
|
||||
'runtime' => 'php-8.3', // Changed to php 8.0 in v2 update endpoint
|
||||
'entrypoint' => 'index.php',
|
||||
'events' => [],
|
||||
'timeout' => 15,
|
||||
|
||||
Reference in new issue
Block a user