Domain\Schedule\ScheduleRepositoryTest::test_all PHP Method

test_all() public method

public test_all ( )
    public function test_all()
    {
        $repo = App::make(ScheduleRepository::class);
        factory(Schedule::class)->create();
        $all = $repo->all();
        $this->assertInstanceOf(LengthAwarePaginator::class, $all);
        $this->assertInstanceOf(Schedule::class, $all->first());
    }