Finalize PR

This commit is contained in:
Matej Bačo
2026-05-11 20:22:50 +02:00
parent 36dec7c88f
commit da3a3b939a
3 changed files with 24 additions and 11 deletions
+1 -1
View File
@@ -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',