Skip to content

Commit 7aa1cce

Browse files
simonhampclaude
andcommitted
Fix CI: add developer account to plugin review check tests
The terms requirement now applies to all plugin submissions, so existing tests that POST to customer.plugins.store need a developer account with accepted terms. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a04ce1a commit 7aa1cce

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/Feature/CustomerPluginReviewChecksTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tests\Feature;
44

5+
use App\Models\DeveloperAccount;
56
use App\Models\User;
67
use App\Notifications\PluginSubmitted;
78
use Illuminate\Foundation\Testing\RefreshDatabase;
@@ -21,6 +22,9 @@ public function submitting_a_plugin_runs_review_checks(): void
2122
$user = User::factory()->create([
2223
'github_id' => '12345',
2324
]);
25+
DeveloperAccount::factory()->onboarded()->withAcceptedTerms()->create([
26+
'user_id' => $user->id,
27+
]);
2428

2529
$repoSlug = 'acme/test-plugin';
2630
$base = "https://api.github.com/repos/{$repoSlug}";
@@ -99,6 +103,9 @@ public function plugin_submitted_email_includes_failing_checks(): void
99103
$user = User::factory()->create([
100104
'github_id' => '12345',
101105
]);
106+
DeveloperAccount::factory()->onboarded()->withAcceptedTerms()->create([
107+
'user_id' => $user->id,
108+
]);
102109

103110
$repoSlug = 'acme/bare-plugin';
104111
$base = "https://api.github.com/repos/{$repoSlug}";

0 commit comments

Comments
 (0)