mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix failing tests
This commit is contained in:
@@ -44,7 +44,7 @@ const APP_PROJECT_ACCESS = 24 * 60 * 60; // 24 hours
|
||||
const APP_RESOURCE_TOKEN_ACCESS = 24 * 60 * 60; // 24 hours
|
||||
const APP_FILE_ACCESS = 24 * 60 * 60; // 24 hours
|
||||
const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours
|
||||
const APP_CACHE_BUSTER = 4324;
|
||||
const APP_CACHE_BUSTER = 4325;
|
||||
const APP_VERSION_STABLE = '1.9.4';
|
||||
const APP_DATABASE_ATTRIBUTE_EMAIL = 'email';
|
||||
const APP_DATABASE_ATTRIBUTE_ENUM = 'enum';
|
||||
|
||||
@@ -55,10 +55,10 @@ class FunctionsClientTest extends Scope
|
||||
|
||||
$query = '
|
||||
mutation createVariables($functionId: String!) {
|
||||
var1: functionsCreateVariable(functionId: $functionId, key: "name", value: "John Doe") {
|
||||
var1: functionsCreateVariable(functionId: $functionId, variableId: "unique()", key: "name", value: "John Doe") {
|
||||
_id
|
||||
}
|
||||
var2: functionsCreateVariable(functionId: $functionId, key: "age", value: "42") {
|
||||
var2: functionsCreateVariable(functionId: $functionId, variableId: "unique()", key: "age", value: "42") {
|
||||
_id
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1096,6 +1096,7 @@ trait MigrationsBase
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||||
'x-appwrite-response-format' => '1.9.3'
|
||||
], [
|
||||
'key' => 'TEST_VAR',
|
||||
'value' => 'test_value',
|
||||
|
||||
@@ -89,6 +89,7 @@ class WebhooksCustomServerTest extends Scope
|
||||
$this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-response-format' => '1.9.3',
|
||||
], $this->getHeaders()), [
|
||||
'key' => 'key1',
|
||||
'value' => 'value1',
|
||||
|
||||
Reference in New Issue
Block a user