예제 #1
0
 protected function DeleteGroup()
 {
     $groupId = $this->page->GetGroupId();
     Log::Debug("Deleting groupId: %s", $groupId);
     $group = $this->groupRepository->LoadById($groupId);
     $this->groupRepository->Remove($group);
 }
예제 #2
0
 public function testRemoveDeletesGroupFromDatabase()
 {
     $id = 123;
     $group = new Group($id, '');
     $this->repository->Remove($group);
     $deleteGroupCommand = new DeleteGroupCommand($id);
     $this->assertTrue($this->db->ContainsCommand($deleteGroupCommand));
 }