private function deleteTerm() { $this->storage->delete(EntityUtils::prepareTerm(self::$vpId)); return [['vp_id' => self::$vpId, 'parent' => self::$vpId]]; }
private function removeCategory() { $this->storage->delete(EntityUtils::preparePost(self::$vpId)); $this->termTaxonomyStorage->delete(EntityUtils::prepareTermTaxonomy(self::$categoryTaxonomyVpId, self::$categoryVpId)); $this->termStorage->delete(EntityUtils::prepareTerm(self::$categoryVpId)); $this->userStorage->delete(EntityUtils::prepareUser(self::$authorVpId)); return [['vp_id' => self::$vpId, 'parent' => self::$vpId], ['vp_id' => self::$categoryTaxonomyVpId, 'parent' => self::$categoryVpId], ['vp_id' => self::$categoryVpId, 'parent' => self::$categoryVpId], ['vp_id' => self::$authorVpId, 'parent' => self::$authorVpId]]; }