diff --git a/app/Http/Controllers/admin/Catalog/Direction/PlaceController.php b/app/Http/Controllers/admin/Catalog/Direction/PlaceController.php index a6ccb8a..22888a2 100644 --- a/app/Http/Controllers/admin/Catalog/Direction/PlaceController.php +++ b/app/Http/Controllers/admin/Catalog/Direction/PlaceController.php @@ -62,7 +62,7 @@ class PlaceController extends Controller $placeTypes = PlaceType::pluck('name', 'id'); $educationForms = EducationForm::pluck('name', 'id'); return view( - 'admin.catalog.direction.place.create', + 'admin.catalog.direction.place.edit', compact( 'place', 'directions', diff --git a/tests/Feature/admin/catalog/direction/PlaceTest.php b/tests/Feature/admin/catalog/direction/PlaceTest.php index 283d9e4..da6e082 100644 --- a/tests/Feature/admin/catalog/direction/PlaceTest.php +++ b/tests/Feature/admin/catalog/direction/PlaceTest.php @@ -57,7 +57,7 @@ class PlaceTest extends TestCase $response->assertOk(); } - public function testCreatePlaceTypePage(): void + public function testCreatePlacePage(): void { $response = $this->actingAs($this->user) ->withSession(['banned' => false]) @@ -66,7 +66,7 @@ class PlaceTest extends TestCase $response->assertOk(); } - public function testStorePlaceType(): void + public function testStorePlace(): void { $response = $this->actingAs($this->user) ->withSession(['banned' => false]) @@ -77,7 +77,7 @@ class PlaceTest extends TestCase $this->assertDatabaseHas('places', $this->data); } - public function testShowPlaceTypePage(): void + public function testShowPlacePage(): void { $response = $this->actingAs($this->user) ->withSession(['banned' => false]) @@ -86,7 +86,7 @@ class PlaceTest extends TestCase $response->assertOk(); } - public function testEditPlaceTypePage(): void + public function testEditPlacePage(): void { $response = $this->actingAs($this->user) ->withSession(['banned' => false]) @@ -95,7 +95,7 @@ class PlaceTest extends TestCase $response->assertOk(); } - public function testUpdatePlaceType(): void + public function testUpdatePlace(): void { $response = $this->actingAs($this->user) ->withSession(['banned' => false]) @@ -106,7 +106,7 @@ class PlaceTest extends TestCase $this->assertDatabaseHas('places', $this->data); } - public function testDestroyPlaceType(): void + public function testDestroyPlace(): void { $response = $this->actingAs($this->user) ->withSession(['banned' => false])