Fix “risky” tests

WC_Tests_API_Functions::test_wc_rest_check_post_permissions
This test did not perform any assertions

WC_Tests_API_Functions::test_wc_rest_check_user_permissions
This test did not perform any assertions

WC_Tests_API_Functions::test_wc_rest_check_product_term_permissions
This test did not perform any assertions
WC_Tests_API_Functions::test_wc_rest_check_manager_permissions
This test did not perform any assertions
This commit is contained in:
Caleb Burks 2017-07-12 23:06:38 -05:00
parent 69f03d81ed
commit ed55ae0117
1 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ class WC_Tests_API_Functions extends WC_Unit_Test_Case {
* @since 2.6.0
*/
public function test_wc_rest_check_post_permissions() {
$this->isFalse( wc_rest_check_post_permissions( 'shop_order' ) );
$this->assertFalse( wc_rest_check_post_permissions( 'shop_order' ) );
}
/**
@ -82,7 +82,7 @@ class WC_Tests_API_Functions extends WC_Unit_Test_Case {
* @since 2.6.0
*/
public function test_wc_rest_check_user_permissions() {
$this->isFalse( wc_rest_check_user_permissions() );
$this->assertFalse( wc_rest_check_user_permissions() );
}
/**
@ -91,7 +91,7 @@ class WC_Tests_API_Functions extends WC_Unit_Test_Case {
* @since 2.6.0
*/
public function test_wc_rest_check_product_term_permissions() {
$this->isFalse( wc_rest_check_product_term_permissions( 'product_cat' ) );
$this->assertFalse( wc_rest_check_product_term_permissions( 'product_cat' ) );
}
/**
@ -100,6 +100,6 @@ class WC_Tests_API_Functions extends WC_Unit_Test_Case {
* @since 2.6.0
*/
public function test_wc_rest_check_manager_permissions() {
$this->isFalse( wc_rest_check_manager_permissions( 'reports' ) );
$this->assertFalse( wc_rest_check_manager_permissions( 'reports' ) );
}
}