39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php declare(strict_types=1);
 | |
| class BlotterTest extends ShimmiePHPUnitTestCase
 | |
| {
 | |
|     public function testLogin()
 | |
|     {
 | |
|         $this->log_in_as_admin();
 | |
|         //$this->assert_text("Blotter Editor");
 | |
|         //$this->click("Blotter Editor");
 | |
|         //$this->log_out();
 | |
|     }
 | |
| 
 | |
|     public function testDenial()
 | |
|     {
 | |
|         $this->get_page("blotter/editor");
 | |
|         $this->assert_response(403);
 | |
|         $this->get_page("blotter/add");
 | |
|         $this->assert_response(403);
 | |
|         $this->get_page("blotter/remove");
 | |
|         $this->assert_response(403);
 | |
|     }
 | |
| 
 | |
|     public function testAddViewRemove()
 | |
|     {
 | |
|         $this->log_in_as_admin();
 | |
| 
 | |
|         $this->get_page("blotter/editor");
 | |
|         //$this->set_field("entry_text", "blotter testing");
 | |
|         //$this->click("Add");
 | |
|         //$this->assert_text("blotter testing");
 | |
| 
 | |
|         $this->get_page("blotter");
 | |
|         //$this->assert_text("blotter testing");
 | |
| 
 | |
|         $this->get_page("blotter/editor");
 | |
|         //$this->click("Remove");
 | |
|         //$this->assert_no_text("blotter testing");
 | |
|     }
 | |
| }
 |