public function testCanRetrievePaginationConfig()
 {
     $expected = ['limit' => 'a', 'page' => 'b', 'more_results' => 'e'];
     // Stub out the API provider
     $service = new Service([], function () use($expected) {
         return ['pagination' => ['foo' => $expected]];
     });
     $this->assertTrue($service->hasPaginator('foo'));
     $actual = $service->getPaginatorConfig('foo');
     $this->assertSame($expected, $actual);
 }
 /**
  * [getPaginator description].
  *
  * @param [type] $name   [description]
  * @param [type] $args   [description]
  * @param [type] $config [description]
  *
  * @return
  */
 public function getPaginator($name, array $args = [], array $config = [])
 {
     $config += $this->api->getPaginatorConfig($name);
     return new ResultPaginator($this, $name, $args, $config);
 }