/** * Reset removing node after test */ public function tearDown() { $nodes = $this->nodeRepository->findByNodeAndSite('fixture_page_contact', '2'); $this->undeleteNodes($nodes); $this->republishNodes($nodes); static::$kernel->getContainer()->get('object_manager')->flush(); parent::tearDown(); }