public function testDelete()
 {
     list($conn, $query) = $this->getMocks();
     $instance = new AudioRepository($conn);
     $id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
     $mockMeta = m::mock('Xpressengine\\Media\\Meta');
     $mockMeta->id = $id;
     $conn->shouldReceive('table')->once()->andReturn($query);
     $query->shouldReceive('where')->once()->with('id', $id)->andReturnSelf();
     $query->shouldReceive('delete')->once()->andReturn(1);
     $instance->delete($mockMeta);
 }
 /**
  * 미디어 삭제
  *
  * @param Media $media media instance
  * @return void
  */
 public function remove(Media $media)
 {
     $this->repo->delete($media->getMeta());
 }