Fix tests
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b9c0abe49e
commit
15ce834dc0
|
@ -17,12 +17,14 @@ class StoreTest extends TestCase
|
||||||
|
|
||||||
$response = $this->post(route('activity.store'), [
|
$response = $this->post(route('activity.store'), [
|
||||||
'name' => 'Lorem',
|
'name' => 'Lorem',
|
||||||
|
'is_filterable' => true,
|
||||||
'subactivities' => [],
|
'subactivities' => [],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response->assertRedirect('/activity');
|
$response->assertRedirect('/activity');
|
||||||
$this->assertDatabaseHas('activities', [
|
$this->assertDatabaseHas('activities', [
|
||||||
'name' => 'Lorem',
|
'name' => 'Lorem',
|
||||||
|
'is_filterable' => 1,
|
||||||
'nami_id' => null,
|
'nami_id' => null,
|
||||||
]);
|
]);
|
||||||
$this->assertDatabaseCount('activity_subactivity', 0);
|
$this->assertDatabaseCount('activity_subactivity', 0);
|
||||||
|
@ -47,6 +49,7 @@ class StoreTest extends TestCase
|
||||||
$response = $this->post(route('activity.store'), [
|
$response = $this->post(route('activity.store'), [
|
||||||
'name' => 'Lorem',
|
'name' => 'Lorem',
|
||||||
'nami_id' => 556,
|
'nami_id' => 556,
|
||||||
|
'is_filterable' => true,
|
||||||
'subactivities' => [],
|
'subactivities' => [],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -62,6 +65,7 @@ class StoreTest extends TestCase
|
||||||
|
|
||||||
$response = $this->from('/activity')->post(route('activity.store'), [
|
$response = $this->from('/activity')->post(route('activity.store'), [
|
||||||
'name' => 'Lorem',
|
'name' => 'Lorem',
|
||||||
|
'is_filterable' => true,
|
||||||
'subactivities' => [$subactivity->id],
|
'subactivities' => [$subactivity->id],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue