Document Sales Centre Meet API key and add service API test.
Deploy Ladill Meet / deploy (push) Successful in 1m23s
Deploy Ladill Meet / deploy (push) Successful in 1m23s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user