This commit is contained in:
2025-05-09 09:00:54 -04:00
parent db3d596be5
commit 6d1c36fcf4
3 changed files with 27 additions and 18 deletions

View File

@@ -14,7 +14,6 @@ use Siteworxpro\Tests\Unit;
class RedisClientServiceTest extends Unit
{
public function testCreateServiceHttp(): void
{
$this->createTest(ProtocolEnum::HTTP);
@@ -50,7 +49,8 @@ class RedisClientServiceTest extends Unit
->andReturn([0, []]);
Redis::expects('set')
->with('traefik/' . $protocol->getValue() . '/services/foo/loadbalancer/servers/server1/url', 'http://foo.localhost:80')
->with('traefik/' . $protocol->getValue() .
'/services/foo/loadbalancer/servers/server1/url', 'http://foo.localhost:80')
->once()
->andReturn(true);
@@ -140,4 +140,4 @@ class RedisClientServiceTest extends Unit
$this->assertIsArray($services);
$this->assertCount(2, $services);
}
}
}