From c35a3cefcbbe9acd4529ae7fd21b64cae582445e Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 13 Mar 2024 15:43:27 +0300 Subject: [PATCH] delete negative destroy test direction --- tests/Feature/admin/catalog/DirectionTest.php | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/tests/Feature/admin/catalog/DirectionTest.php b/tests/Feature/admin/catalog/DirectionTest.php index a7c8a5f..2f729ef 100644 --- a/tests/Feature/admin/catalog/DirectionTest.php +++ b/tests/Feature/admin/catalog/DirectionTest.php @@ -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', - ]) - ); - } }