Domain\Employee\Http\EmployeeControllerTest::test_restore_by_put PHP Метод

test_restore_by_put() публичный Метод

public test_restore_by_put ( )
    public function test_restore_by_put()
    {
        $employee = factory(Employee::class)->create();
        $employee->delete();
        $this->put('api/v1/restore/employee/' . $employee->id);
        $this->seeStatusCode(200);
        $this->assertEquals(1, $this->response->original);
        $this->seeInDatabase('employees', ['id' => $employee->id]);
        $this->notSeeInDatabase('employees', ['id' => $employee->id, 'deleted_at' => $employee->deleted_at]);
    }