/** * Delete Website after test variation. * * @return void */ public function tearDown() { // Delete Website if ($this->website->hasData('website_id')) { $this->storeIndex->open(); $storeGrid = $this->storeIndex->getStoreGrid(); $storeGrid->openWebsite($this->website->getName()); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } }