mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-23 04:34:41 +00:00
Tests: Use more appropriate assertions in various tests.
This replaces instances of `assertTrue( is_numeric( ... ) )` with `assertIsNumeric()` to use native PHPUnit functionality. Follow-up to [51335], [51337], [51367], [51397], [51403], [51404], [51436]. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51438 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -153,7 +153,7 @@ class Tests_Term extends WP_UnitTestCase {
|
||||
$initial_count = wp_count_terms( array( 'taxonomy' => 'category' ) );
|
||||
|
||||
$t = wp_insert_category( array( 'cat_name' => $term ) );
|
||||
$this->assertTrue( is_numeric( $t ) );
|
||||
$this->assertIsNumeric( $t );
|
||||
$this->assertNotWPError( $t );
|
||||
$this->assertTrue( $t > 0 );
|
||||
$this->assertEquals( $initial_count + 1, wp_count_terms( array( 'taxonomy' => 'category' ) ) );
|
||||
|
||||
Reference in New Issue
Block a user