Domain\Employee\EmployeeTest::test_create_employee PHP Метод

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

    public function test_create_employee()
    {
        $employee = factory(Employee::class)->create();
        $this->assertInstanceOf(Employee::class, $employee);
        $this->assertInstanceOf(Carbon::class, $employee->created_at);
        $this->assertInstanceOf(Carbon::class, $employee->updated_at);
        $this->assertNull($employee->deleted_at);
        $this->seeInDatabase('employees', ['name' => $employee->name]);
    }