mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-27 09:14:43 +02:00
* refactor: migration from laravel-enum package to native php enums * style: fix StyleCI findings
40 lines
890 B
PHP
40 lines
890 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Unit\Actions\Repositories;
|
|
|
|
use App\Actions\Repositories\ReconcileResults;
|
|
use App\Enums\Actions\ActionStatus;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* Class ReconcileResultsTest.
|
|
*/
|
|
class ReconcileResultsTest extends TestCase
|
|
{
|
|
/**
|
|
* The Reconcile Results shall always return true.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testDefault(): void
|
|
{
|
|
$reconcileResults = new class extends ReconcileResults
|
|
{
|
|
/**
|
|
* Get the model of the reconciliation results.
|
|
*
|
|
* @return class-string<Model>
|
|
*/
|
|
protected function model(): string
|
|
{
|
|
return Model::class;
|
|
}
|
|
};
|
|
|
|
static::assertTrue(ActionStatus::PASSED === $reconcileResults->getStatus());
|
|
}
|
|
}
|