CMB2 Documentation
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks
  • Download Docs
  • Github

Packages

  • CMB2
  • Demo
    • CMB2
  • None
  • Tests
    • CMB2

Classes

  • Test_CMB2
  • Test_CMB2_Ajax
  • Test_CMB2_Core
  • Test_CMB2_Field
  • Test_CMB2_JS
  • Test_CMB2_Object
  • Test_CMB2_Options
  • Test_CMB2_REST
  • Test_CMB2_Rest_Base
  • Test_CMB2_REST_Controllers
  • Test_CMB2_REST_Object
  • Test_CMB2_REST_Registered_Fields
  • Test_CMB2_Types
  • Test_CMB2_Types_Base
  • Test_CMB2_Types_Display
  • Test_CMB2_Utils

Exceptions

  • Test_CMB2_Exception

Hooks

  • Hook Reference

Class Test_CMB2_Types_Base

CMB2 tests base

WP_UnitTestCase
Extended by Test_CMB2
Extended by Test_CMB2_Types_Base

Direct known subclasses

Test_CMB2_Types, Test_CMB2_Types_Display

Abstract
Package: Tests\CMB2
License: GPL-2.0+
Author: CMB2 team
Link: https://cmb2.io
Located at tests/test-cmb-types-base.php

Methods summary

public
# set_up( )

Set up the test fixture

Set up the test fixture

Overrides

Test_CMB2::set_up
public
# tear_down( )

Overrides

Test_CMB2::tear_down
protected
# check_box_assertion( $output, $checked = false )
protected
# file_sprintf( $args )
public static
# options_cb( $field )

Test Callbacks

Test Callbacks

protected
# get_field_object( $type = '' )

Test_CMB2_Types helper methods

Test_CMB2_Types helper methods

protected
# get_field_type_object( $args = '' )

Methods inherited from Test_CMB2

assertContainsOnlyInstancesOf(), assertHTMLstringsAreEqual(), assertIsDefined(), assertNotFalse(), assertOEmbedResult(), assertOEmbedResultString(), assertVerifiersMatch(), capture_render(), compare_strings(), hook_to_wp_die(), invokeMethod(), is_connected(), normalize_http_string(), normalize_string(), oembed_no_connection_result(), oembed_no_connection_result_verifiers(), oembed_success_result(), oembed_success_result_verifiers(), render_field(), wp_die()

Properties summary

Properties inherited from Test_CMB2

$hooks_to_die

CMB2 Documentation API documentation generated by ApiGen