1
0
Fork 0
mirror of synced 2024-07-06 07:00:56 +12:00

fix test cases

This commit is contained in:
Yatharth Verma 2023-06-21 15:55:39 +00:00 committed by Yatharth Verma
parent 56a3b3df99
commit 5771ad35ed
2 changed files with 1 additions and 26 deletions

View file

@ -970,31 +970,6 @@ trait AccountBase
$this->assertEquals(409, $response['headers']['status-code']);
/**
* Test for FAILURE
*/
$response = $this->client->call(Client::METHOD_POST, '/account/verification', array_merge([
'origin' => 'http://localhost',
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session,
]), [
'url' => 'localhost/verification',
]);
$this->assertEquals(400, $response['headers']['status-code']);
$response = $this->client->call(Client::METHOD_POST, '/account/verification', array_merge([
'origin' => 'http://localhost',
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session,
]), [
'url' => 'http://remotehost/verification',
]);
$this->assertEquals(400, $response['headers']['status-code']);
return $data;
}

View file

@ -1090,6 +1090,6 @@ class AccountCustomClientTest extends Scope
$this->assertEquals(409, $response['headers']['status-code']);
return \array_merge($data);
return $data;
}
}