Example #1
0
 /**
  * @runInSeparateProcess
  */
 public function testGetDocument()
 {
     $id = 123;
     $documentMock = m::mock('alias:\\Box\\View\\Document')->makePartial();
     $document = new \Box\View\Document(['id' => $id]);
     $documentMock->shouldReceive('get')->with($this->client, $id)->andReturn($document);
     $response = $this->client->getDocument($id);
     $this->assertEquals($document, $response);
 }