/** * バリデーションが正しく通ることをテストします */ public function testValidationSuccess() { captcha(); $phrase = session('captcha.phrase'); $this->request['name'] = 'testing'; $this->request['email'] = '*****@*****.**'; $this->request['password'] = '******'; $this->request['password_confirmation'] = 'testing'; $this->request['captcha_code'] = $phrase; $this->assertNull($this->request->validate()); }