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