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

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

    public function test_delete_by_delete()
    {
        $employee = factory(Employee::class)->create();
        $this->delete('api/v1/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' => null]);
    }