Skip to content

Commit

Permalink
service endpoint custom subject
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 24, 2024
1 parent 7fbd60a commit 273e8ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Functional/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ public function testNestedServiceGroups()
$this->assertSame($service->info()->endpoints['greet']['subject'], 'basis.v2.greet');
}

public function testServiceEndpointCustomSubject()
{
$service = $this->createTestService();
$service->addGroup('basis')->addEndpoint('empty', TestEndpoint::class, [
'subject' => 'greet',
]);
$this->assertSame($service->info()->endpoints['empty']['subject'], 'basis.greet');
}

public function testServiceInfo()
{
$service = $this->createTestService();
Expand Down

0 comments on commit 273e8ef

Please sign in to comment.