Domain\Classroom\ClassroomTest::test_create_classroom PHP Method

test_create_classroom() public method

    public function test_create_classroom()
    {
        $classroom = factory(Classroom::class)->create();
        $this->assertInstanceOf(Classroom::class, $classroom);
        $this->assertInstanceOf(Teacher::class, $classroom->teacher);
        $this->assertInstanceOf(Schedule::class, $classroom->schedule);
        $this->assertInstanceOf(Carbon::class, $classroom->created_at);
        $this->assertInstanceOf(Carbon::class, $classroom->updated_at);
        $this->seeInDatabase('classrooms', ['name' => $classroom->name]);
    }