Codeception\TestCase\WPCanonicalTestCase::delete_shared_fixtures PHP Method

delete_shared_fixtures() public static method

Clean up shared fixtures.
Since: 4.1.0
public static delete_shared_fixtures ( )
    public static function delete_shared_fixtures()
    {
        self::delete_user(self::$author_id);
        foreach (self::$post_ids as $pid) {
            wp_delete_post($pid, true);
        }
        foreach (self::$comment_ids as $cid) {
            wp_delete_comment($cid, true);
        }
        foreach (self::$term_ids as $tid => $tax) {
            wp_delete_term($tid, $tax);
        }
        self::$author_id = null;
        self::$post_ids = array();
        self::$comment_ids = array();
        self::$term_ids = array();
        self::$terms = array();
    }