Skip to content

Commit

Permalink
nested services groups test
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 24, 2024
1 parent bcc9b0f commit 7fbd60a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Functional/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ private function createTestService(): Service
return $service;
}

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

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

0 comments on commit 7fbd60a

Please sign in to comment.