Skip to content

Commit

Permalink
fix microservice naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Oct 1, 2024
1 parent c8970af commit aadfc75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/Functional/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ private function createTestService(): Service

return $service;
}
public function testServiceRequestReplyString()
public function testServiceRequestReplyClass()
{
$service = $this->createTestService();

$service
->addGroup('v1')
->addEndpoint(
'test',
'test_class',
TestEndpoint::class
);

$service->client->publish('v1.test', '');
$service->client->publish('v1.test_class', '');

$response = $service->client->process(1);

Expand All @@ -49,15 +49,15 @@ public function testServiceRequestReplyCallable()
$service
->addGroup('v1')
->addEndpoint(
'test',
'test_callback',
function (Payload $payload) {
return [
'success' => true
];
}
);

$service->client->publish('v1.test', '');
$service->client->publish('v1.test_callback', '');

$response = $service->client->process(1);

Expand All @@ -71,11 +71,11 @@ public function testServiceRequestReplyInstance()
$service
->addGroup('v1')
->addEndpoint(
'test',
'test_instance',
new TestEndpoint()
);

$service->client->publish('v1.test', '');
$service->client->publish('v1.test_instance', '');

$response = $service->client->process(1);

Expand Down

0 comments on commit aadfc75

Please sign in to comment.