public function testDelete()
 {
     list($conn, $keygen, $query) = $this->getMocks();
     $instance = new TemporaryRepository($conn, $keygen);
     $mockEntity = m::mock('Xpressengine\\Temporary\\TemporaryEntity');
     $mockEntity->shouldReceive('get')->with('id')->andReturn('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
     $conn->shouldReceive('table')->andReturn($query);
     $query->shouldReceive('where')->once()->with('id', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')->andReturnSelf();
     $query->shouldReceive('delete')->once()->andReturn(1);
     $instance->delete($mockEntity);
 }
 /**
  * 임시저장 데이터 삭제
  *
  * @param TemporaryEntity $temporary 임시저장 객체
  * @return void
  */
 public function remove(TemporaryEntity $temporary)
 {
     $this->repo->delete($temporary);
 }