Moved common data provider for core unit tests to trait

This commit is contained in:
Alejandro Celaya
2021-01-10 09:31:51 +01:00
parent c56d56d38c
commit 5283ee2c6b
5 changed files with 30 additions and 30 deletions

View File

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