Remove updateTest
This commit is contained in:
parent
ba06cad845
commit
1b8bf5f196
tests/Feature/Member
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Feature\Member;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
use App\Member\Member;
|
||||
use App\Country;
|
||||
use App\Nationality;
|
||||
use App\Fee;
|
||||
use App\Group;
|
||||
|
||||
class UpdateTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_it_can_update_a_member()
|
||||
{
|
||||
$this->withoutExceptionHandling();
|
||||
$this->login();
|
||||
|
||||
$member = Member::factory()
|
||||
->for(Country::factory())
|
||||
->for(Group::factory()->state(['nami_id' => 12399]))
|
||||
->for(Nationality::factory())
|
||||
->for(Fee::factory())
|
||||
->create(['firstname' => 'Max', 'nami_id' => 999]);
|
||||
|
||||
$member->update(['firstname' => 'Jane']);
|
||||
|
||||
$this->assertMemberExists(12399, [
|
||||
'vorname' => 'Jane',
|
||||
'id' => 999
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue