fix test
This commit is contained in:
parent
a9078cded5
commit
f03035451f
|
@ -1173,7 +1173,7 @@ class ProjectsConsoleClientTest extends Scope
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals(403, $response['headers']['status-code']);
|
$this->assertEquals(400, $response['headers']['status-code']);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
|
@ -1188,7 +1188,7 @@ class ProjectsConsoleClientTest extends Scope
|
||||||
'password' => 'password',
|
'password' => 'password',
|
||||||
'name' => 'Cristiano Ronaldo',
|
'name' => 'Cristiano Ronaldo',
|
||||||
]);
|
]);
|
||||||
$this->assertEquals(403, $response['headers']['status-code']);
|
$this->assertEquals(400, $response['headers']['status-code']);
|
||||||
|
|
||||||
$headers = array_merge($this->getHeaders(), [
|
$headers = array_merge($this->getHeaders(), [
|
||||||
'x-appwrite-mode' => 'admin',
|
'x-appwrite-mode' => 'admin',
|
||||||
|
@ -1200,7 +1200,7 @@ class ProjectsConsoleClientTest extends Scope
|
||||||
'password' => $password,
|
'password' => $password,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals(403, $response['headers']['status-code']);
|
$this->assertEquals(400, $response['headers']['status-code']);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1223,11 +1223,11 @@ class ProjectsConsoleClientTest extends Scope
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
'x-appwrite-project' => $this->getProject()['$id'],
|
||||||
], $this->getHeaders()), [
|
], $this->getHeaders()), [
|
||||||
'enabled' => true,
|
'enabled' => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals(200, $response['headers']['status-code']);
|
$this->assertEquals(200, $response['headers']['status-code']);
|
||||||
$this->assertEquals(true, $response['body']['authPasswordDictionary']);
|
$this->assertEquals(false, $response['body']['authPasswordDictionary']);
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue