mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Replace traits with static classes in CLI unit tests
This commit is contained in:
16
module/Core/test/Util/ApiKeyDataProviders.php
Normal file
16
module/Core/test/Util/ApiKeyDataProviders.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ShlinkioTest\Shlink\Core\Util;
|
||||
|
||||
use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
|
||||
class ApiKeyDataProviders
|
||||
{
|
||||
public static function adminApiKeysProvider(): iterable
|
||||
{
|
||||
yield 'no API key' => [null];
|
||||
yield 'admin API key' => [ApiKey::create()];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user