This commit is contained in:
hashbro
2026-08-09 02:42:28 +08:00
parent 5c7600744e
commit 6489808fa5
8 changed files with 150 additions and 26 deletions
@@ -47,6 +47,7 @@ class ChannelProjectServiceTest extends TestCase
&& $request->data() === [
'deployment_domains' => ['deploy.test'],
'reporting_domains' => ['report.test'],
'support_template' => 'test',
]);
}
@@ -60,6 +61,21 @@ class ChannelProjectServiceTest extends TestCase
Http::assertSent(fn ($request) => $request->data() === [
'deployment_domains' => ['channel.only.test'],
'reporting_domains' => ['report.test'],
'support_template' => 'test',
]);
}
#[Test]
public function it_forwards_support_template_to_builder(): void
{
Http::fake(['builder.test/*' => Http::response(['ok' => true])]);
app(ChannelProjectService::class)->generate(self::CHANNEL_ID, null, 'blank');
Http::assertSent(fn ($request) => $request->data() === [
'deployment_domains' => ['deploy.test'],
'reporting_domains' => ['report.test'],
'support_template' => 'blank',
]);
}