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); }
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(); }