1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

fix(tests): realtime with functions

This commit is contained in:
Torsten Dittmann 2021-08-18 12:49:34 +02:00
parent e2948ea02f
commit 4695ea9914

View file

@ -632,11 +632,10 @@ trait RealtimeBase
'x-appwrite-key' => $this->getProject()['apiKey']
]), [
'name' => 'Test',
'runtime' => 'php-7.4',
'runtime' => 'php-8.0',
'execute' => ['*'],
'timeout' => 10,
]);
var_dump($function);
$functionId = $function['body']['$id'] ?? '';
@ -651,7 +650,7 @@ trait RealtimeBase
'command' => 'php index.php',
'code' => new CURLFile(realpath(__DIR__ . '/../../../resources/functions/timeout.tar.gz'), 'application/x-gzip', 'php-fx.tar.gz'),
]);
var_dump($tag);
$tagId = $tag['body']['$id'] ?? '';
$this->assertEquals($tag['headers']['status-code'], 201);