Merge pull request #16101 from woocommerce/api-test-coverage

Fix “risky” rest api tests
This commit is contained in:
Mike Jolley 2017-07-13 10:46:49 +01:00 committed by GitHub
commit 456612e9c8
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' ) );
}
}