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

@@ -44,7 +44,7 @@ class RedisClientRoutersTest extends Unit
->once()
->andReturn(true);
RedisClient::createOrReplace('foo', [
new RedisClient()->createOrReplace('foo', [
'rule' => 'Host(`foo.localhost`)',
'service' => 'foo',
], EntityEnum::ROUTER, $protocol);
@@ -108,7 +108,7 @@ class RedisClientRoutersTest extends Unit
->with('traefik/' . $protocolEnum->getValue() . '/routers/foo/service')
->andReturn('foo');
$routers = RedisClient::getRouter('foo', $protocolEnum);
$routers = new RedisClient()->getRouter('foo', $protocolEnum);
$this->assertIsArray($routers);
@@ -138,7 +138,7 @@ class RedisClientRoutersTest extends Unit
'traefik/' . $protocol->getValue() . '/routers/bar/url/0',
]]);
$routers = RedisClient::getAllRouters($protocol);
$routers = new RedisClient()->getAllRouters($protocol);
$this->assertIsArray($routers);
$this->assertCount(2, $routers);