Domain\Schedule\Http\ScheduleControllerTest::test_show PHP Method

test_show() public method

public test_show ( )
    public function test_show()
    {
        $model = m::mock(Schedule::class);
        $repo = m::mock(ScheduleRepository::class);
        $repo->shouldReceive('get')->once()->andReturn($model);
        App::instance(ScheduleRepository::class, $repo);
        $controller = App::make(ScheduleController::class);
        $get = $controller->show(1);
        $this->assertInstanceOf(Schedule::class, $get);
    }