fix some tests
This commit is contained in:
		
							parent
							
								
									b01edb2aec
								
							
						
					
					
						commit
						f772b30301
					
				| @ -15,7 +15,7 @@ class IndexTest extends ShimmiePHPUnitTestCase { | |||||||
| 
 | 
 | ||||||
| 	public function testIndexPage() { | 	public function testIndexPage() { | ||||||
| 		$this->get_page('post/list'); | 		$this->get_page('post/list'); | ||||||
| 		$this->assert_title("Welcome to Shimmie ".VERSION); | 		$this->assert_title("Welcome to Shimmie"); | ||||||
| 		$this->assert_no_text("Prev | Index | Next"); | 		$this->assert_no_text("Prev | Index | Next"); | ||||||
| 
 | 
 | ||||||
| 		$this->log_in_as_user(); | 		$this->log_in_as_user(); | ||||||
|  | |||||||
| @ -140,7 +140,7 @@ class PoolsTheme extends Themelet { | |||||||
| 		$page->add_block(new NavBlock()); | 		$page->add_block(new NavBlock()); | ||||||
| 		$page->add_block(new Block("Pool Navigation", $poolnav_html, "left", 10)); | 		$page->add_block(new Block("Pool Navigation", $poolnav_html, "left", 10)); | ||||||
| 
 | 
 | ||||||
| 		if(count($pools) == 1) { | 		if(!is_null($pools) && count($pools) == 1) { | ||||||
| 			$pool = $pools[0]; | 			$pool = $pools[0]; | ||||||
| 			if($pool['public'] == "Y" || $user->is_admin()) {// IF THE POOL IS PUBLIC OR IS ADMIN SHOW EDIT PANEL
 | 			if($pool['public'] == "Y" || $user->is_admin()) {// IF THE POOL IS PUBLIC OR IS ADMIN SHOW EDIT PANEL
 | ||||||
| 				if(!$user->is_anonymous()) {// IF THE USER IS REGISTERED AND LOGGED IN SHOW EDIT PANEL
 | 				if(!$user->is_anonymous()) {// IF THE USER IS REGISTERED AND LOGGED IN SHOW EDIT PANEL
 | ||||||
|  | |||||||
| @ -16,6 +16,8 @@ if( // kill these glitched requests immediately | |||||||
| ) {die("No");} | ) {die("No");} | ||||||
| 
 | 
 | ||||||
| class Rule34 extends Extension { | class Rule34 extends Extension { | ||||||
|  | 	protected $db_support = ['pgsql'];  # Only PG has the NOTIFY pubsub system
 | ||||||
|  | 
 | ||||||
| 	public function onImageDeletion(ImageDeletionEvent $event) { | 	public function onImageDeletion(ImageDeletionEvent $event) { | ||||||
| 		global $database; | 		global $database; | ||||||
| 		$database->execute("NOTIFY shm_image_bans, '{$event->image->hash}';"); | 		$database->execute("NOTIFY shm_image_bans, '{$event->image->hash}';"); | ||||||
|  | |||||||
| @ -9,9 +9,9 @@ | |||||||
| 	</testsuites> | 	</testsuites> | ||||||
| 	<filter> | 	<filter> | ||||||
| 		<whitelist> | 		<whitelist> | ||||||
| 			<directory suffix=".php">core</directory> | 			<directory suffix=".php">../core</directory> | ||||||
| 			<directory suffix=".php">ext</directory> | 			<directory suffix=".php">../ext</directory> | ||||||
| 			<directory suffix=".php">themes/default</directory> | 			<directory suffix=".php">../themes/default</directory> | ||||||
| 		</whitelist> | 		</whitelist> | ||||||
| 	</filter> | 	</filter> | ||||||
| </phpunit> | </phpunit> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user