Метод | Описание | |
---|---|---|
setUp ( ) | Setup our test server, endpoints, and user info. | |
test_create_product ( ) | Test creating a single product. | |
test_create_product_without_permission ( ) | Test creating a single product without permission. | |
test_delete_product ( ) | Test deleting a single product. | |
test_delete_product_with_invalid_id ( ) | Test deleting a single product with an invalid ID. | |
test_delete_product_without_permission ( ) | Test deleting a single product without permission. | |
test_get_product ( ) | Test getting a single product. | |
test_get_product_without_permission ( ) | Test getting single product without permission. | |
test_get_products ( ) | Test getting products. | |
test_get_products_without_permission ( ) | Test getting products without permission. | |
test_product_schema ( ) | Test product schema. | |
test_products_batch ( ) | Test batch managing products. | |
test_products_filter_post_status ( ) | * Tests to make sure you can filter products post statuses by both the status query arg and WP_Query. | |
test_register_routes ( ) | Test route registration. | |
test_update_product ( ) | Test editing a single product. Tests multiple product types. | |
test_update_product_with_invalid_id ( ) | Test updating a single product with an invalid ID. | |
test_update_product_without_permission ( ) | Test updating a single product without permission. |
public test_create_product ( ) |
public test_create_product_without_permission ( ) |
public test_delete_product ( ) |
public test_delete_product_with_invalid_id ( ) |
public test_delete_product_without_permission ( ) |
public test_get_product_without_permission ( ) |
public test_get_products_without_permission ( ) |
public test_products_filter_post_status ( ) |
public test_update_product ( ) |
public test_update_product_with_invalid_id ( ) |
public test_update_product_without_permission ( ) |