28 lines
		
	
	
		
			836 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			836 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
class ExtManagerTest extends ShimmiePHPUnitTestCase
 | 
						|
{
 | 
						|
    public function testAuth()
 | 
						|
    {
 | 
						|
        $this->get_page('ext_manager');
 | 
						|
        $this->assert_title("Extensions");
 | 
						|
 | 
						|
        $this->get_page('ext_doc');
 | 
						|
        $this->assert_title("Extensions");
 | 
						|
 | 
						|
        $this->get_page('ext_doc/ext_manager');
 | 
						|
        $this->assert_title("Documentation for Extension Manager");
 | 
						|
        $this->assert_text("view a list of all extensions");
 | 
						|
 | 
						|
        # test author without email
 | 
						|
        $this->get_page('ext_doc/user');
 | 
						|
 | 
						|
        $this->log_in_as_admin();
 | 
						|
        $this->get_page('ext_manager');
 | 
						|
        $this->assert_title("Extensions");
 | 
						|
        //$this->assert_text("SimpleTest integration"); // FIXME: something which still exists
 | 
						|
        $this->log_out();
 | 
						|
 | 
						|
        # FIXME: test that some extensions can be added and removed? :S
 | 
						|
    }
 | 
						|
}
 |