/**
  * Action for deleting a bookmark
  *
  * @param Tx_PtExtlist_Domain_Model_Bookmark_Bookmark $bookmark Bookmark to be deleted
  */
 public function deleteAction(Tx_PtExtlist_Domain_Model_Bookmark_Bookmark $bookmark)
 {
     if ($bookmark->getFeUser()->getUid() == $this->feUser->getUid() || $this->bookmarkConfiguration->getUserCanDeleteAll()) {
         $this->bookmarkRepository->remove($bookmark);
         $this->persistenceManager->persistAll();
     } else {
         $this->flashMessageContainer->add('You are not allowed to delete this bookmark.');
     }
     $this->forward('show');
 }
 /**
  * @test
  */
 public function getUserCanDeleteAll()
 {
     $this->assertEquals(FALSE, $this->bookmarkConfigToBeTested->getUserCanDeleteAll());
 }