Domain\Schedule\Http\ScheduleControllerTest::test_store_failed PHP 메소드

test_store_failed() 공개 메소드

public test_store_failed ( )
    public function test_store_failed()
    {
        $request = m::mock(StoreRequest::class);
        $request->shouldReceive('all')->once()->andReturn([]);
        $error = m::mock(RepositoryException::class);
        $this->setExpectedException(RepositoryException::class);
        App::instance(StoreRequest::class, $request);
        $controller = App::make(ScheduleController::class);
        $controller->store();
    }