Document Sales Centre Meet API key and add service API test.
Deploy Ladill Meet / deploy (push) Successful in 1m23s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-11 20:50:33 +00:00
co-authored by Cursor
parent e5bf62feee
commit d14f8a4b25
2 changed files with 18 additions and 0 deletions
+17
View File
@@ -513,6 +513,23 @@ class MeetWebTest extends TestCase
->assertJsonPath('room.title', 'Invoice review');
}
public function test_service_api_can_create_room_for_sales_centre_app(): void
{
\Illuminate\Support\Facades\Http::fake();
config(['meet.service_api_keys.sales_centre' => 'test-sales-centre-key']);
$this->postJson('/api/service/v1/rooms', [
'owner_ref' => $this->user->public_id,
'host_user_ref' => $this->user->public_id,
'title' => 'Ladill demo with Prospect',
'type' => 'instant',
'source' => ['app' => 'sales_centre', 'entity_type' => 'sales_lead', 'entity_id' => '42'],
'invite_emails' => ['prospect@demo.test'],
], ['Authorization' => 'Bearer test-sales-centre-key'])
->assertCreated()
->assertJsonPath('room.title', 'Ladill demo with Prospect');
}
public function test_service_api_can_create_town_hall_room(): void
{
\Illuminate\Support\Facades\Http::fake();