mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Finalize PR
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
bootstrap="app/init.php"
|
||||
colors="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="true"
|
||||
stopOnFailure="false"
|
||||
stopOnError="false"
|
||||
cacheDirectory=".phpunit.cache"
|
||||
>
|
||||
|
||||
@@ -9,6 +9,29 @@ class V26 extends Filter
|
||||
// Convert 1.9.4 params to 1.9.5
|
||||
public function parse(array $content, string $model): array
|
||||
{
|
||||
switch ($model) {
|
||||
case 'projects.create':
|
||||
$content = $this->stripProjectMetadata($content);
|
||||
break;
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
protected function stripProjectMetadata(array $content): array
|
||||
{
|
||||
unset(
|
||||
$content['description'],
|
||||
$content['logo'],
|
||||
$content['url'],
|
||||
$content['legalName'],
|
||||
$content['legalCountry'],
|
||||
$content['legalState'],
|
||||
$content['legalCity'],
|
||||
$content['legalAddress'],
|
||||
$content['legalTaxId'],
|
||||
);
|
||||
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1788,16 +1788,6 @@ class ProjectsConsoleClientTest extends Scope
|
||||
$data = $this->setupProjectData();
|
||||
$id = $data['projectId'];
|
||||
|
||||
/** Ensure SMTP is disabled */
|
||||
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/smtp', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-response-format' => '1.9.4',
|
||||
], $this->getHeaders()), [
|
||||
'enabled' => false,
|
||||
]);
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
|
||||
/** Get Default Email Template */
|
||||
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id . '/templates/email/verification/en-us', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user