Class Test_CMB2_Utils
CMB2 tests base
- WP_UnitTestCase
- Test_CMB2
- Test_CMB2_Utils
Package: Tests\CMB2
License: GPL-2.0+
Author: CMB2 team
Link: https://cmb2.io
Located at tests/test-cmb-utils.php
License: GPL-2.0+
Author: CMB2 team
Link: https://cmb2.io
Located at tests/test-cmb-utils.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
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
protected
array
|
$test_empty
|
#
array(
array(
'val' => null,
'empty' => true,
),
array(
'val' => false,
'empty' => true,
),
array(
'val' => '',
'empty' => true,
),
array(
'val' => 0,
'empty' => false,
),
array(
'val' => 0.0,
'empty' => false,
),
array(
'val' => '0',
'empty' => false,
),
array(
'val' => '0.0',
'empty' => false,
),
array(
'val' => 1,
'empty' => false,
),
array(
'val' => ' ',
'empty' => false,
),
array(
'val' => "\n",
'empty' => false,
),
array(
'val' => ' ',
'empty' => false,
),
array(
'val' => array(),
'empty' => true,
),
array(
'val' => array( 0 ),
'empty' => false,
),
)
|