/**
  * @group create
  */
 public function testCreateEmbeddedRequestingWithEmbeddedSigning()
 {
     // Create the signature request
     $request = new SignatureRequest();
     $request->enableTestMode();
     $request->setRequesterEmail('*****@*****.**');
     $request->addFile(__DIR__ . '/nda.docx');
     // Turn it into an embedded request
     $client_id = $_ENV['CLIENT_ID'];
     $draft_request = new UnclaimedDraft($request, $client_id);
     $draft_request->setIsForEmbeddedSigning(true);
     // Send it to HelloSign
     $response = $this->client->createUnclaimedDraft($draft_request);
     $this->assertInstanceOf('HelloSign\\UnclaimedDraft', $response);
     $this->assertNotNull($response->getClaimUrl());
 }
 /**
  * @group create
  */
 public function testCreateEmbeddedUnclaimedDraft()
 {
     $account = $this->client->getAccount();
     $request = new SignatureRequest();
     $request->enableTestMode();
     $request->setRequesterEmail($account->getEmail());
     $request->setTitle('NDA with Acme Co.');
     $request->setSubject('The NDA we talked about');
     $request->setMessage('Please sign this NDA and let\'s discuss.');
     $request->addSigner('*****@*****.**', 'Bale');
     $request->addSigner('*****@*****.**', 'Beck');
     $request->addCC('*****@*****.**');
     $request->addFile(__DIR__ . '/nda.docx');
     $client_id = $_ENV['CLIENT_ID'];
     $draft = new UnclaimedDraft($request, $client_id);
     $response = $this->client->createUnclaimedDraft($draft);
     $sign_url = $response->getClaimUrl();
     $this->assertInstanceOf('HelloSign\\UnclaimedDraft', $response);
     $this->assertNotNull($response);
     $this->assertEquals($draft, $response);
     $this->assertNotEmpty($sign_url);
 }