예제 #1
0
 /**
  * @deprecated use configuration object in constructor instead
  * @param string $slug
  * @return $this
  */
 public function changeSlug($slug)
 {
     $this->api->changeSlug($slug);
     return $this;
 }
 /**
  * @param string $methodName
  * @param string $path
  * @param array|NULL $parameters
  * @param array|NULL $content
  * @return void
  */
 private function mockPerformCall($methodName, $path, array $parameters = NULL, array $content = NULL)
 {
     $expectedRestrictions = $this->getExpectedRestrictions($parameters, $content);
     $this->api->shouldReceive($methodName)->with($path, equalTo($expectedRestrictions))->once();
 }
예제 #3
0
 /**
  * @param string $pathTemplate
  * @param Restriction|NULL $restriction
  * @return array|NULL
  * @throws RequestFailedException when request failed for some reason
  * @throws InvalidArgumentException when some mandatory parameter is missing in restriction
  */
 protected function performDelete($pathTemplate, Restriction $restriction = NULL)
 {
     return $this->api->performDelete($pathTemplate, $restriction);
 }