mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 05:35:25 +01:00
27 lines
579 B
PHP
27 lines
579 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Models;
|
|
|
|
use App\Models\Group;
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
use PHPUnit\Framework\Attributes\Test;
|
|
use Tests\FeatureTestCase;
|
|
|
|
/**
|
|
* GroupModelTest test class
|
|
*/
|
|
#[CoversClass(Group::class)]
|
|
class GroupModelTest extends FeatureTestCase
|
|
{
|
|
#[Test]
|
|
public function test_scopeOrphans_retreives_accounts_without_owner()
|
|
{
|
|
$orphan = Group::factory()->create();
|
|
|
|
$orphans = Group::orphans()->get();
|
|
|
|
$this->assertCount(1, $orphans);
|
|
$this->assertEquals($orphan->id, $orphans[0]->id);
|
|
}
|
|
}
|