more reliable self finding
This commit is contained in:
		
							parent
							
								
									4f14197577
								
							
						
					
					
						commit
						9d968b630d
					
				@ -17,7 +17,9 @@ define('ADMIN_PASS', "demo");
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class ShimmieWebTestCase extends WebTestCase {
 | 
					class ShimmieWebTestCase extends WebTestCase {
 | 
				
			||||||
	protected function get_page($page) {
 | 
						protected function get_page($page) {
 | 
				
			||||||
		$this->get($_SERVER["HTTP_HOST"].'/'.make_link($page));
 | 
							$url = "http://".$_SERVER["HTTP_HOST"].get_base_href().'/'.make_link($page);
 | 
				
			||||||
 | 
							$url = str_replace("/./", "/", $url);
 | 
				
			||||||
 | 
							$this->get($url);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	protected function log_in_as_user() {
 | 
						protected function log_in_as_user() {
 | 
				
			||||||
        $this->get_page('post/list');
 | 
					        $this->get_page('post/list');
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user