/** * */ public function setUp() { parent::setUp(); $this->request = $this->getMockBuilder(Request::class)->getMock(); $this->router = $this->getMockBuilder(Router::class)->disableOriginalConstructor()->getMock(); $this->redirectResponse = $this->getMockBuilder(RedirectResponse::class)->disableOriginalConstructor()->getMock(); $this->redirectResponse->expects($this->any())->method('withInput')->willReturnSelf(); $this->redirector = $this->getMockBuilder(Redirector::class)->disableOriginalConstructor()->getMock(); $this->redirector->expects($this->any())->method('route')->willReturn($this->redirectResponse); $this->redirector->expects($this->any())->method('action')->willReturn($this->redirectResponse); $this->redirector->expects($this->any())->method('withInput')->willReturnSelf(); $this->validatorFactory = $this->app->make(Factory::class); }
/** * */ public function setUp() { parent::setUp(); $this->rule = $this->app->make(PhoneNumberValidationRule::class); }
/** * */ public function setUp() { parent::setUp(); $this->rule = $this->app->make(ImageDimensionValidationRule::class); $this->tmpFile = tempnam(sys_get_temp_dir(), 'lv-test'); }
/** * */ public function setUp() { parent::setUp(); $this->validator = new AbstractValidatorFixture(Container::getInstance()->make(Factory::class)); }
/** * */ public function setUp() { parent::setUp(); $this->rule = $this->app->make(JsonValidationRule::class); }
/** * */ public function setUp() { parent::setUp(); $this->storage = new ArrayDataStorage(); }