domain\classroom\ClassroomRepositoryTest::test_store PHP Method

test_store() public method

public test_store ( )
    public function test_store()
    {
        $repo = App::make(ClassroomRepository::class);
        $teacher = factory(Teacher::class)->create();
        $schedule = factory(Schedule::class)->create();
        $store = $repo->store(['name' => 'oi', 'teacher_id' => $teacher->id, 'schedule_id' => $schedule->id]);
        $this->assertInstanceOf(Classroom::class, $store);
        $this->assertInstanceOf(Carbon::class, $store->created_at);
    }