public function testDeleteSectionThrowsBadStateException() { $sectionService = $this->repository->getSectionService(); $section = $sectionService->loadSection(1); $sectionService->deleteSection($section); }