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:
Jake Barnby
2026-01-15 18:18:55 +13:00
co-authored by Claude Opus 4.5
parent 1d03af22e4
commit 7498c330eb
4 changed files with 5 additions and 8 deletions
@@ -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'];
+2 -4
View File
@@ -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'] ?? '';