/**
  * testFindMenuItem
  *
  * @return void
  */
 public function testFindMenuItemThrowException()
 {
     $this->setExpectedException('Xpressengine\\Menu\\Exceptions\\NotFoundMenuItemException');
     $conn = $this->getConnectionMock();
     $query = $this->getQueryBuilderMock();
     $keygen = $this->getKeygenMock();
     $repository = new DBMenuRepository($conn, $keygen);
     $conn->shouldReceive('table')->with(self::MENU_ITEM_TABLE . ' as t')->andReturn($query);
     $query->shouldReceive('selectRaw')->andReturn($query);
     $query->shouldReceive('join')->andReturn($query);
     $query->shouldReceive('where')->andReturn($query);
     $query->shouldReceive('groupBy')->andReturn($query);
     $query->shouldReceive('first')->andReturn(null);
     $repository->findItem('notice');
 }