eZ\Bundle\EzPublishRestBundle\Features\Context\RestContext::createAndSendRequest PHP Метод

createAndSendRequest() публичный Метод

public createAndSendRequest ( $type, $resource )
    public function createAndSendRequest($type, $resource)
    {
        $this->createRequest($type, $resource);
        $this->restDriver->send();
    }

Usage Example

Пример #1
0
 /**
  * @When /^I create a draft of this content$/
  */
 public function iCreateADraftOfThisContent()
 {
     $this->restContext->createAndSendRequest('copy', '/content/objects/' . $this->currentContent->id . '/currentversion');
     $this->currentDraft = $this->restContext->getResponseObject();
 }