Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit d944bf7

Browse files
author
Jamie Snape
committed
Fix failing tests
1 parent 12bb1ad commit d944bf7

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

modules/api/controllers/IndexController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ function jsonAction()
185185
}
186186

187187
/** Allows components to call redirect */
188-
function redirect($url)
188+
function redirect($url, array $options = array())
189189
{
190-
$this->_redirect($url);
190+
$this->_redirect($url, $options);
191191
}
192192
} // end class

tests/PHPUnitMySQL.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,12 @@
6363

6464
copy($base_path . '/tests/configs/mysql.ini', $base_path . '/tests/configs/lock.mysql.ini');
6565

66-
require_once 'PHP/CodeCoverage/Filter.php';
67-
PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
66+
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
6867

6968
if (strpos('@php_bin@', '@php_bin') === 0) {
7069
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
7170
}
7271

7372
require_once 'PHPUnit/Autoload.php';
7473

75-
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
76-
7774
PHPUnit_TextUI_Command::main();

tests/PHPUnitPgSQL.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,12 @@
6363

6464
copy($base_path . '/tests/configs/pgsql.ini', $base_path . '/tests/configs/lock.pgsql.ini');
6565

66-
require_once 'PHP/CodeCoverage/Filter.php';
67-
PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
66+
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
6867

6968
if (strpos('@php_bin@', '@php_bin') === 0) {
7069
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
7170
}
7271

7372
require_once 'PHPUnit/Autoload.php';
7473

75-
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
76-
7774
PHPUnit_TextUI_Command::main();

0 commit comments

Comments
 (0)