and tests
This commit is contained in:
		
							parent
							
								
									0de2f23ece
								
							
						
					
					
						commit
						56bb03f01a
					
				| @ -14,16 +14,16 @@ class IPBanTest extends ShimmiePHPUnitTestCase | |||||||
| 
 | 
 | ||||||
|         $this->markTestIncomplete(); |         $this->markTestIncomplete(); | ||||||
| 
 | 
 | ||||||
|         $this->set_field('ip', '42.42.42.42'); |         $this->set_field('c_ip', '42.42.42.42'); | ||||||
|         $this->set_field('reason', 'unit testing'); |         $this->set_field('c_reason', 'unit testing'); | ||||||
|         $this->set_field('end', '1 week'); |         $this->set_field('c_expires', '1 week'); | ||||||
|         $this->click("Ban"); |         $this->click("Ban"); | ||||||
| 
 | 
 | ||||||
|         $this->assert_text("42.42.42.42"); |         $this->assert_text("42.42.42.42"); | ||||||
|         $this->click("Remove"); // FIXME: remove which ban? :S
 |         $this->click("Remove"); // FIXME: remove which ban? :S
 | ||||||
|         $this->assert_no_text("42.42.42.42"); |         $this->assert_no_text("42.42.42.42"); | ||||||
| 
 | 
 | ||||||
|         $this->get_page('ip_ban/list?all=on'); // just test it doesn't crash for now
 |         $this->get_page('ip_ban/list?r_all=on'); // just test it doesn't crash for now
 | ||||||
| 
 | 
 | ||||||
|         # FIXME: test that the IP is actually banned
 |         # FIXME: test that the IP is actually banned
 | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user