fanatic/tests/Feature/Joined/DestroyTest.php

15 lines
320 B
PHP
Raw Permalink Normal View History

2022-04-27 18:41:16 -07:00
<?php
use App\Models\Joined;
uses()->group('joined', 'admin');
it('destroys item in database', function () {
$joined = Joined::factory()->create();
$id = $joined->id;
$this->assertDatabaseHas('joined', ['id' => $id]);
$joined->remove();
$this->assertDatabaseMissing('joined', ['id' => $id]);
});