Ejemplo n.º 1
0
 public function testSetsCaptchaUrl()
 {
     $url = "http://blah/blah/blah";
     $this->captcha->expects($this->once())->method('GetImageUrl')->will($this->returnValue($url));
     $this->ExpectAttributeServiceCalled();
     $this->presenter->PageLoad();
     $this->assertEquals($url, $this->page->_CaptchaUrl);
 }
Ejemplo n.º 2
0
 public function PageLoad()
 {
     $this->BounceIfNotAllowingRegistration();
     $attributes = $this->attributeService->GetAttributes(CustomAttributeCategory::USER);
     $this->page->SetAttributes($attributes->GetAttributes());
     $this->page->SetCaptchaImageUrl($this->captchaService->GetImageUrl());
     $this->PopulateTimezones();
     $this->PopulateHomepages();
 }