Example #1
0
 public function testBusinessSearchByNameAddressWithZip()
 {
     $name = 'Test';
     $state = 'CA';
     $city = 'Los Angeles';
     $this->setMockRequesterExpectations('runGet', '/v1/business/search', array('name' => $name, 'state' => $state, 'city' => $city));
     $this->dandb->businessSearchByNameAddress($name, $state, null, $city);
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('dandb', function ($app) {
         $baseUrl = $this->getBaseUrl();
         $guzzleOpts = $this->getGuzzleOpts();
         list($clientId, $clientSecret) = $this->getClientIdAndSecret();
         $laravelCache = $app->make('cache');
         $cache = new DandBCache($laravelCache);
         return DandB::getInstance($clientId, $clientSecret, $baseUrl, $guzzleOpts, $cache);
     });
 }