Changeset 937
- Timestamp:
- 07/23/08 18:37:17 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/new-router/test/unit2/AkRouter/tests/UrlTest.php
r800 r937 47 47 function testRelativeUrlPart() 48 48 { 49 $Request = $this->getMock('AkRequest',array('getRelativeUrlRoot'));50 $Request->expects($this->any())51 ->method('getRelativeUrlRoot')52 ->will($this->returnValue('/subfolder'));53 54 49 $url = new AkUrl('/author/martin'); 55 50 $url->setOptions(array('skip_relative_url_root'=>false,'relative_url_root'=>'/subfolder')); … … 79 74 function createUrl($path,$query='') 80 75 { 81 $Request = $this->getMock('AkRequest',array('getRelativeUrlRoot','getProtocol','getHostWithPort'));82 $Request->expects($this->any())83 ->method('getRelativeUrlRoot')84 ->will($this->returnValue(''));85 $Request->expects($this->any())86 ->method('getProtocol')87 ->will($this->returnValue('http'));88 $Request->expects($this->any())89 ->method('getHostWithPort')90 ->will($this->returnValue('localhost'));91 76 $url = new AkUrl($path,$query); 92 77 $url->setOptions(array('relative_url_root'=>'','protocol'=>'http','host'=>'localhost'));
