public function testInfusionsoftConnectionViaFacadesFuse() { $data = Fuse::appEcho('test'); $this->assertEquals('ERROR: -1 - No method matching arguments: java.lang.String, java.lang.String', $data); }
Cron::add('Sync One', Config::get('larafuse::syncOneTime'), function () { Sync::sync('Referral', Config::get('larafuse::syncOneLimit')); Sync::sync('Campaignee', Config::get('larafuse::syncOneLimit')); Sync::sync('FileBox', Config::get('larafuse::syncOneLimit')); return null; }); Cron::add('Sync Missing', Config::get('larafuse::syncMissingTime'), function () { Sync::syncMissing(); return null; }); $report = Cron::run(); print_r($report); }); Route::group(array('prefix' => 'larafuse'), function () { Route::get('/test', function () { return Fuse::dsQuery('Product', 1, 0, ['Id' => '%'], ['Id', 'ProductName']); }); Route::get('fetch/rowcount', function () { return Fetch::getRowCount(); }); Route::get('fetch/{table?}', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@fetch'); Route::get('fetchid/{table}/{Id}', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@fetchId'); Route::get('fetchtable/{table}/{page?}/{continue?}', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@fetchTable'); Route::get('syncmissing/{table?}', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@syncMissing'); Route::get('syncfield/{table?}', function ($table = null) { return Sync::syncField($table); }); Route::get('syncordergroup', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@syncOrderGroup'); Route::get('syncmain', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@syncMain'); Route::get('sync/{table?}/{limit?}', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@sync'); Route::get('syncid/{table}/{Id}', 'Sairiz\\Larafuse\\Controllers\\LarafuseController@syncId');