}
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
-define('STATUSNET', true);
-define('LACONICA', true);
+define('GNUSOCIAL', true);
+define('STATUSNET', true); // compatibility
require_once INSTALLDIR . '/lib/common.php';
{
$inter = new CommandInterpreter();
- $user = new User(); // fake user
- $user->limit(1);
- $user->find();
- $cmd = $inter->handle_command($user, $input);
+ $cmd = $inter->handle_command(null, $input);
$type = $cmd ? get_class($cmd) : null;
$this->assertEquals(strtolower($expectedType), strtolower($type), $comment);
array('whois foo', 'WhoisCommand'),
array('whois foo bar', null),
- array('fav', null),
+/* array('fav', null),
array('fav foo', 'FavCommand'),
- array('fav foo bar', null),
+ array('fav foo bar', null),*/
array('nudge', null),
array('nudge foo', 'NudgeCommand'),
array('invite foo bar', null),
array('track', null),
- array('track foo', 'TrackCommand'),
- array('track off', 'TrackOffCommand'),
+ array('track foo', 'SearchSubTrackCommand'),
+ array('track off', 'SearchSubTrackOffCommand'),
array('track foo bar', null),
array('track off foo', null),
array('untrack', null),
- array('untrack foo', 'UntrackCommand'),
- array('untrack all', 'TrackOffCommand'),
+ array('untrack foo', 'SearchSubUntrackCommand'),
+ array('untrack all', 'SearchSubTrackOffCommand'),
array('untrack foo bar', null),
array('untrack all foo', null),
- array('tracking', 'TrackingCommand'),
+ array('tracking', 'SearchSubTrackingCommand'),
array('tracking foo', null),
- array('tracks', 'TrackingCommand'),
+ array('tracks', 'SearchSubTrackingCommand'),
array('tracks foo', null),
);