diff --git a/module/CLI/test/Command/Api/ListKeysCommandTest.php b/module/CLI/test/Command/Api/ListKeysCommandTest.php index 54ce19bc..0e806e87 100644 --- a/module/CLI/test/Command/Api/ListKeysCommandTest.php +++ b/module/CLI/test/Command/Api/ListKeysCommandTest.php @@ -105,21 +105,21 @@ class ListKeysCommandTest extends TestCase ]; yield 'with names' => [ [ - ApiKey::withKey('abc', null, 'Alice'), - ApiKey::withKey('def', null, 'Alice and Bob'), - ApiKey::withKey('ghi', null, ''), - ApiKey::withKey('jkl', null, null), + $apiKey1 = ApiKey::withName('Alice'), + $apiKey2 = ApiKey::withName('Alice and Bob'), + $apiKey3 = ApiKey::withName(''), + $apiKey4 = new ApiKey(), ], true, <<expirationDate;