forked from aslan/applicant-site
fix rename methods in PlaceController.php
This commit is contained in:
parent
115f49ea53
commit
1e804e1161
|
@ -62,7 +62,7 @@ class PlaceController extends Controller
|
||||||
$placeTypes = PlaceType::pluck('name', 'id');
|
$placeTypes = PlaceType::pluck('name', 'id');
|
||||||
$educationForms = EducationForm::pluck('name', 'id');
|
$educationForms = EducationForm::pluck('name', 'id');
|
||||||
return view(
|
return view(
|
||||||
'admin.catalog.direction.place.create',
|
'admin.catalog.direction.place.edit',
|
||||||
compact(
|
compact(
|
||||||
'place',
|
'place',
|
||||||
'directions',
|
'directions',
|
||||||
|
|
|
@ -57,7 +57,7 @@ class PlaceTest extends TestCase
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCreatePlaceTypePage(): void
|
public function testCreatePlacePage(): void
|
||||||
{
|
{
|
||||||
$response = $this->actingAs($this->user)
|
$response = $this->actingAs($this->user)
|
||||||
->withSession(['banned' => false])
|
->withSession(['banned' => false])
|
||||||
|
@ -66,7 +66,7 @@ class PlaceTest extends TestCase
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testStorePlaceType(): void
|
public function testStorePlace(): void
|
||||||
{
|
{
|
||||||
$response = $this->actingAs($this->user)
|
$response = $this->actingAs($this->user)
|
||||||
->withSession(['banned' => false])
|
->withSession(['banned' => false])
|
||||||
|
@ -77,7 +77,7 @@ class PlaceTest extends TestCase
|
||||||
$this->assertDatabaseHas('places', $this->data);
|
$this->assertDatabaseHas('places', $this->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testShowPlaceTypePage(): void
|
public function testShowPlacePage(): void
|
||||||
{
|
{
|
||||||
$response = $this->actingAs($this->user)
|
$response = $this->actingAs($this->user)
|
||||||
->withSession(['banned' => false])
|
->withSession(['banned' => false])
|
||||||
|
@ -86,7 +86,7 @@ class PlaceTest extends TestCase
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testEditPlaceTypePage(): void
|
public function testEditPlacePage(): void
|
||||||
{
|
{
|
||||||
$response = $this->actingAs($this->user)
|
$response = $this->actingAs($this->user)
|
||||||
->withSession(['banned' => false])
|
->withSession(['banned' => false])
|
||||||
|
@ -95,7 +95,7 @@ class PlaceTest extends TestCase
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUpdatePlaceType(): void
|
public function testUpdatePlace(): void
|
||||||
{
|
{
|
||||||
$response = $this->actingAs($this->user)
|
$response = $this->actingAs($this->user)
|
||||||
->withSession(['banned' => false])
|
->withSession(['banned' => false])
|
||||||
|
@ -106,7 +106,7 @@ class PlaceTest extends TestCase
|
||||||
$this->assertDatabaseHas('places', $this->data);
|
$this->assertDatabaseHas('places', $this->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDestroyPlaceType(): void
|
public function testDestroyPlace(): void
|
||||||
{
|
{
|
||||||
$response = $this->actingAs($this->user)
|
$response = $this->actingAs($this->user)
|
||||||
->withSession(['banned' => false])
|
->withSession(['banned' => false])
|
||||||
|
|
Loading…
Reference in New Issue