delete negative destroy test direction
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 1m46s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 32s Details

This commit is contained in:
aslan 2024-03-13 15:43:27 +03:00
parent f1ffe64ef3
commit c35a3cefcb
1 changed files with 0 additions and 23 deletions

View File

@ -130,27 +130,4 @@ class DirectionTest extends TestCase
$this->assertDatabaseMissing('directions', $this->direction->toArray()); $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',
])
);
}
} }