• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Tests_Admin_Includes_Schema::wpTearDownAfterClass() – Drop tables that were created before running the tests.

You appear to be a bot. Output may be restricted

Description

Drop tables that were created before running the tests.

Usage

Tests_Admin_Includes_Schema::wpTearDownAfterClass();

Parameters

Returns

void

Source

File name: wordpress-develop-tests/phpunit/tests/admin/includesSchema.php


Lines:

1 to 14 of 14
  public static function wpTearDownAfterClass() {
    global $wpdb;

    $options  = self::$options;
    $blogmeta = self::$blogmeta;
    $sitemeta = self::$sitemeta;

    // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    $wpdb->query( "DROP TABLE IF EXISTS {$options}" );
    $wpdb->query( "DROP TABLE IF EXISTS {$blogmeta}" );
    $wpdb->query( "DROP TABLE IF EXISTS {$sitemeta}" );
    // phpcs:enable
  }
 

 View on GitHub

Published: 26th November 2019 | Last updated: 27th November 2019

Primary Sidebar

Information

Function name: Tests_Admin_Includes_Schema::wpTearDownAfterClass
Class ref: Tests_Admin_Includes_Schema
Plugin ref: WordPress develop tests
Version: 5.3
Sourcefile: phpunit/tests/admin/includesSchema.php
File ref: phpunit/tests/admin/includesSchema.php
Deprecated?: No
API Letters: A,I,S,T,W

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites