@@ -23,6 +23,7 @@ public function submitting_a_plugin_runs_review_checks(): void
2323
2424 $ user = User::factory ()->create ([
2525 'github_id ' => '12345 ' ,
26+ 'github_token ' => encrypt ('fake-token ' ),
2627 ]);
2728 DeveloperAccount::factory ()->withAcceptedTerms ()->create ([
2829 'user_id ' => $ user ->id ,
@@ -45,7 +46,7 @@ public function submitting_a_plugin_runs_review_checks(): void
4546 'content ' => base64_encode ("# Test Plugin \n\nSupport: dev@testplugin.io " ),
4647 'encoding ' => 'base64 ' ,
4748 ]),
48- "{$ base }/contents/composer.json " => Http::response ([
49+ "{$ base }/contents/composer.json* " => Http::response ([
4950 'content ' => base64_encode ($ composerJson ),
5051 'encoding ' => 'base64 ' ,
5152 ]),
@@ -55,6 +56,9 @@ public function submitting_a_plugin_runs_review_checks(): void
5556 "{$ base }/tags* " => Http::response ([]),
5657 "https://raw.githubusercontent.com/ {$ repoSlug }/* " => Http::response ('' , 404 ),
5758
59+ // Webhook creation
60+ "{$ base }/hooks " => Http::response (['id ' => 1 ], 201 ),
61+
5862 // ReviewPluginRepository calls
5963 $ base => Http::response (['default_branch ' => 'main ' ]),
6064 "{$ base }/git/trees/main* " => Http::response ([
@@ -103,6 +107,7 @@ public function plugin_submitted_email_includes_failing_checks(): void
103107
104108 $ user = User::factory ()->create ([
105109 'github_id ' => '12345 ' ,
110+ 'github_token ' => encrypt ('fake-token ' ),
106111 ]);
107112 DeveloperAccount::factory ()->withAcceptedTerms ()->create ([
108113 'user_id ' => $ user ->id ,
@@ -121,7 +126,7 @@ public function plugin_submitted_email_includes_failing_checks(): void
121126 'content ' => base64_encode ('# Bare Plugin ' ),
122127 'encoding ' => 'base64 ' ,
123128 ]),
124- "{$ base }/contents/composer.json " => Http::response ([
129+ "{$ base }/contents/composer.json* " => Http::response ([
125130 'content ' => base64_encode ($ composerJson ),
126131 'encoding ' => 'base64 ' ,
127132 ]),
@@ -131,6 +136,9 @@ public function plugin_submitted_email_includes_failing_checks(): void
131136 "{$ base }/tags* " => Http::response ([]),
132137 "https://raw.githubusercontent.com/ {$ repoSlug }/* " => Http::response ('' , 404 ),
133138
139+ // Webhook creation
140+ "{$ base }/hooks " => Http::response (['id ' => 1 ], 201 ),
141+
134142 $ base => Http::response (['default_branch ' => 'main ' ]),
135143 "{$ base }/git/trees/main* " => Http::response ([
136144 'tree ' => [
0 commit comments