Updated tests

This commit is contained in:
Eldad Fux
2020-08-01 07:29:18 +03:00
parent 86744a770d
commit ecfa8a9c54
@@ -24,7 +24,7 @@ class FunctionsConsoleServerTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'name' => 'Test',
'env' => 'node-14',
'env' => 'php-7.4',
'vars' => [
'key1' => 'value1',
'key2' => 'value2',
@@ -43,7 +43,7 @@ class FunctionsConsoleServerTest extends Scope
$this->assertEquals(201, $response1['headers']['status-code']);
$this->assertNotEmpty($response1['body']['$id']);
$this->assertEquals('Test', $response1['body']['name']);
$this->assertEquals('node-14', $response1['body']['env']);
$this->assertEquals('php-7.4', $response1['body']['env']);
$this->assertIsInt($response1['body']['dateCreated']);
$this->assertIsInt($response1['body']['dateUpdated']);
$this->assertEquals('', $response1['body']['tag']);