1
0
Fork 0
mirror of synced 2024-07-11 17:35:49 +12:00
This commit is contained in:
Damodar Lohani 2022-12-26 10:22:25 +00:00
parent a9078cded5
commit f03035451f

View file

@ -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;
} }