public function testDelete()
{
list($filesystem) = $this->getMocks();
$instance = new FilesystemHandler($filesystem);
$mockFile = m::mock('Xpressengine\\Storage\\File');
$mockFile->shouldReceive('getAttribute')->once()->with('disk')->andReturn('local');
$mockFile->shouldReceive('getPathname')->andReturn('attached/filenamestring');
$mockFilesystem = m::mock('Illuminate\\Contracts\\Filesystem\\Filesystem');
$mockFilesystem->shouldReceive('delete')->once()->with('attached/filenamestring')->andReturnNull();
$filesystem->shouldReceive('disk')->once()->with('local')->andReturn($mockFilesystem);
$instance->delete($mockFile);
}