/**
  * リスト6.11:テスト間の依存
  * @return array|null
  * @throws Exception
  */
 public function testReturnBookDepend()
 {
     $result = $this->repository->getReferenceBook(1);
     $this->assertInternalType('array', $result);
     $this->assertArrayHasKey('title', $result);
     $this->assertArrayHasKey('id', $result);
     $this->assertNull($this->repository->getReferenceBook(10));
     return $result;
 }
 public function test_fetch_all_ordered_by_unauthorized_option()
 {
     $this->buildUpTheMockWithOptions();
     $data = $this->instance->all(['orderBy' => 'nonAuthorizedOption']);
     $this->assertEquals($data, 'done');
 }