eZ\Bundle\EzPublishRestBundle\Tests\Functional\TrashTest::testRestoreTrashItemWithDestination PHP Method

testRestoreTrashItemWithDestination() public method

    public function testRestoreTrashItemWithDestination()
    {
        $trashItemHref = $this->createTrashItem(__FUNCTION__);
        $request = $this->createHttpRequest('MOVE', $trashItemHref);
        $request->addHeader('Destination: /api/ezp/v2/content/locations/1/2');
        $response = $this->sendHttpRequest($request);
        self::assertHttpResponseCodeEquals($response, 201);
        self::assertHttpResponseHasHeader($response, 'Location');
    }