shlink/module/Core/test/Util/ApiKeyHelpersTrait.php
2023-02-09 09:32:38 +01:00

17 lines
307 B
PHP

<?php
declare(strict_types=1);
namespace ShlinkioTest\Shlink\Core\Util;
use Shlinkio\Shlink\Rest\Entity\ApiKey;
trait ApiKeyHelpersTrait
{
public static function provideAdminApiKeys(): iterable
{
yield 'no API key' => [null];
yield 'admin API key' => [ApiKey::create()];
}
}