Is there an award for this?

This commit is contained in:
2025-05-12 14:35:00 -04:00
parent b9f4b4500d
commit 7f7af2f3b4
14 changed files with 622 additions and 33 deletions

View File

@@ -54,7 +54,7 @@ class RedisClientServiceTest extends Unit
->once()
->andReturn(true);
RedisClient::createOrReplace('foo', [
new RedisClient()->createOrReplace('foo', [
'loadbalancer' => [
'servers' => [
'server1' => [
@@ -103,7 +103,7 @@ class RedisClientServiceTest extends Unit
->with('traefik/' . $protocol->getValue() . '/services/foo/loadbalancer/servers/server1/url')
->andReturn('http://foo.localhost:80');
$services = RedisClient::getService('foo', $protocol);
$services = new RedisClient()->getService('foo', $protocol);
$this->assertIsArray($services);
$this->assertArrayHasKey('loadbalancer', $services);
@@ -135,7 +135,7 @@ class RedisClientServiceTest extends Unit
'traefik/' . $protocol->getValue() . '/services/bar/loadbalancer/servers/server2/url',
]]);
$services = RedisClient::getAllServices($protocol);
$services = new RedisClient()->getAllServices($protocol);
$this->assertIsArray($services);
$this->assertCount(2, $services);