/** * Clear temporary data */ public function tearDown() { if ($this->currentBlock) { $this->blockRepository->delete($this->currentBlock); $this->currentBlock = null; } }