Fix V2 tests

This commit is contained in:
Matej Bačo committed 2025-01-09 14:57:42 +00:00
1 parent f666a1e3a1
commit bb0f40569f
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -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,