22 lines
		
	
	
		
			533 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			533 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| class ExtManagerTest extends ShimmieWebTestCase {
 | |
| 	function testAuth() {
 | |
|         $this->get_page('ext_manager');
 | |
| 		$this->assertResponse(403);
 | |
| 		$this->assertTitle("Permission Denied");
 | |
| 
 | |
| 		$this->log_in_as_user();
 | |
|         $this->get_page('ext_manager');
 | |
| 		$this->assertResponse(403);
 | |
| 		$this->assertTitle("Permission Denied");
 | |
| 		$this->log_out();
 | |
| 
 | |
| 		$this->log_in_as_admin();
 | |
|         $this->get_page('ext_manager');
 | |
| 		$this->assertTitle("Extensions");
 | |
| 		$this->assertText("SimpleTest integration");
 | |
| 		$this->log_out();
 | |
| 	}
 | |
| }
 | |
| ?>
 |