}
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
-define('STATUSNET', true);
+define('GNUSOCIAL', true);
+define('STATUSNET', true); // compatibility
require_once INSTALLDIR . '/lib/common.php';
function setUp()
{
- $user = User::staticGet('nickname', 'userrightstestuser');
+ $user = User::getKV('nickname', 'userrightstestuser');
if ($user) {
// Leftover from a broken test run?
$profile = $user->getProfile();
$this->user->grantRole($role);
$this->assertTrue($this->user->hasRole($role));
}
-}
\ No newline at end of file
+}