Lint Activity EditTest
This commit is contained in:
parent
3a4c99f154
commit
b8d389bdb9
|
@ -5,14 +5,10 @@ namespace Tests\Feature\Activity;
|
||||||
use App\Activity;
|
use App\Activity;
|
||||||
use App\Subactivity;
|
use App\Subactivity;
|
||||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class EditTest extends TestCase
|
uses(DatabaseTransactions::class);
|
||||||
{
|
|
||||||
use DatabaseTransactions;
|
|
||||||
|
|
||||||
public function testItEditsAnActivity(): void
|
it('testItEditsAnActivity', function () {
|
||||||
{
|
|
||||||
$this->login()->loginNami()->withoutExceptionHandling();
|
$this->login()->loginNami()->withoutExceptionHandling();
|
||||||
$activity = Activity::factory()->name('Asas')->hasAttached(Subactivity::factory()->name('Pupu')->filterable())->create();
|
$activity = Activity::factory()->name('Asas')->hasAttached(Subactivity::factory()->name('Pupu')->filterable())->create();
|
||||||
|
|
||||||
|
@ -43,5 +39,4 @@ class EditTest extends TestCase
|
||||||
'update' => route('api.subactivity.update', ['subactivity' => $activity->subactivities->first()->id]),
|
'update' => route('api.subactivity.update', ['subactivity' => $activity->subactivities->first()->id]),
|
||||||
],
|
],
|
||||||
], $response, 'meta.subactivities.0');
|
], $response, 'meta.subactivities.0');
|
||||||
}
|
});
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue