From 273e8efa493dc461f0287f522aca5df6b276b55a Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Tue, 24 Dec 2024 15:39:45 +0300 Subject: [PATCH] service endpoint custom subject --- tests/Functional/ServiceTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Functional/ServiceTest.php b/tests/Functional/ServiceTest.php index 20ae62f..3e24058 100644 --- a/tests/Functional/ServiceTest.php +++ b/tests/Functional/ServiceTest.php @@ -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();