fix some tests
This commit is contained in:
parent
b01edb2aec
commit
f772b30301
4 changed files with 7 additions and 5 deletions
|
@ -15,7 +15,7 @@ class IndexTest extends ShimmiePHPUnitTestCase {
|
|||
|
||||
public function testIndexPage() {
|
||||
$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->log_in_as_user();
|
||||
|
|
|
@ -140,7 +140,7 @@ class PoolsTheme extends Themelet {
|
|||
$page->add_block(new NavBlock());
|
||||
$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];
|
||||
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
|
||||
|
|
|
@ -16,6 +16,8 @@ if( // kill these glitched requests immediately
|
|||
) {die("No");}
|
||||
|
||||
class Rule34 extends Extension {
|
||||
protected $db_support = ['pgsql']; # Only PG has the NOTIFY pubsub system
|
||||
|
||||
public function onImageDeletion(ImageDeletionEvent $event) {
|
||||
global $database;
|
||||
$database->execute("NOTIFY shm_image_bans, '{$event->image->hash}';");
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
</testsuites>
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory suffix=".php">core</directory>
|
||||
<directory suffix=".php">ext</directory>
|
||||
<directory suffix=".php">themes/default</directory>
|
||||
<directory suffix=".php">../core</directory>
|
||||
<directory suffix=".php">../ext</directory>
|
||||
<directory suffix=".php">../themes/default</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
|
Reference in a new issue