Merge pull request #16101 from woocommerce/api-test-coverage
Fix “risky” rest api tests
This commit is contained in:
commit
456612e9c8
|
@ -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' ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue