delete negative destroy test direction
This commit is contained in:
parent
f1ffe64ef3
commit
c35a3cefcb
|
@ -130,27 +130,4 @@ class DirectionTest extends TestCase
|
|||
|
||||
$this->assertDatabaseMissing('directions', $this->direction->toArray());
|
||||
}
|
||||
|
||||
public function testNotDestroyDirectionWithEntranceExamination(): void
|
||||
{
|
||||
$response = $this->actingAs($this->user)
|
||||
->withSession(['banned' => false])
|
||||
->delete(route('directions.destroy', $this->direction));
|
||||
|
||||
$response->assertStatus(302);
|
||||
|
||||
$this->assertDatabaseHas(
|
||||
'directions',
|
||||
$this->direction->only([
|
||||
'position',
|
||||
'name',
|
||||
'description',
|
||||
'code',
|
||||
'slug',
|
||||
'education_level_id',
|
||||
'education_form_id',
|
||||
'department_id',
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue