mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add missing PHPUnit #[Depends] to Functions, Messaging, Webhooks tests
Fixed missing #[Depends] attributes: - FunctionsCustomServerTest: testCancelDeploymentBuild → testCreateDeployment - MessagingBase: testDeleteMessage → testSendEmail - WebhooksBase: testDeleteDocument → testUpdateDocument, testDeleteRow → testUpdateRow - WebhooksCustomClientTest: testUpdateAccountName → testDeleteAccountSessions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
1d03af22e4
commit
7498c330eb
@@ -707,9 +707,8 @@ class FunctionsCustomServerTest extends Scope
|
||||
return array_merge($data, ['deploymentId' => $deploymentIdActive]);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
#[Retry(count: 3)]
|
||||
#[Depends('testCreateDeployment')]
|
||||
public function testCancelDeploymentBuild($data): void
|
||||
{
|
||||
$functionId = $data['functionId'];
|
||||
|
||||
@@ -1743,6 +1743,7 @@ trait MessagingBase
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
*/
|
||||
#[Depends('testSendEmail')]
|
||||
public function testDeleteMessage(array $params): void
|
||||
{
|
||||
$message = $params['message'];
|
||||
|
||||
@@ -314,9 +314,8 @@ trait WebhooksBase
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
#[Retry(count: 1)]
|
||||
#[Depends('testUpdateDocument')]
|
||||
public function testDeleteDocument(array $data): array
|
||||
{
|
||||
$actorsId = $data['actorsId'];
|
||||
@@ -658,9 +657,8 @@ trait WebhooksBase
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
#[Retry(count: 1)]
|
||||
#[Depends('testUpdateRow')]
|
||||
public function testDeleteRow(array $data): array
|
||||
{
|
||||
$actorsId = $data['actorsId'];
|
||||
|
||||
@@ -406,9 +406,8 @@ class WebhooksCustomClientTest extends Scope
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
#[Retry(count: 1)]
|
||||
#[Depends('testDeleteAccountSessions')]
|
||||
public function testUpdateAccountName($data): array
|
||||
{
|
||||
$id = $data['id'] ?? '';
|
||||
|
||||
Reference in New Issue
Block a user