PHP 클래스 Products_API

부터: 2.7.0
상속: extends WC_REST_Unit_Test_Case
파일 보기 프로젝트 열기: woocommerce/woocommerce

공개 메소드들

메소드 설명
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.

메소드 상세

setUp() 공개 메소드

Setup our test server, endpoints, and user info.
public setUp ( )

test_create_product() 공개 메소드

Test creating a single product.
부터: 2.7.0
public test_create_product ( )

test_create_product_without_permission() 공개 메소드

Test creating a single product without permission.
부터: 2.7.0

test_delete_product() 공개 메소드

Test deleting a single product.
부터: 2.7.0
public test_delete_product ( )

test_delete_product_with_invalid_id() 공개 메소드

Test deleting a single product with an invalid ID.
부터: 2.7.0

test_delete_product_without_permission() 공개 메소드

Test deleting a single product without permission.
부터: 2.7.0

test_get_product() 공개 메소드

Test getting a single product.
부터: 2.7.0
public test_get_product ( )

test_get_product_without_permission() 공개 메소드

Test getting single product without permission.
부터: 2.7.0

test_get_products() 공개 메소드

Test getting products.
부터: 2.7.0
public test_get_products ( )

test_get_products_without_permission() 공개 메소드

Test getting products without permission.
부터: 2.7.0

test_product_schema() 공개 메소드

Test product schema.
부터: 2.7.0
public test_product_schema ( )

test_products_batch() 공개 메소드

Test batch managing products.
public test_products_batch ( )

test_products_filter_post_status() 공개 메소드

* Tests to make sure you can filter products post statuses by both the status query arg and WP_Query.
부터: 2.7.0

test_register_routes() 공개 메소드

Test route registration.
부터: 2.7.0

test_update_product() 공개 메소드

Test editing a single product. Tests multiple product types.
부터: 2.7.0
public test_update_product ( )

test_update_product_with_invalid_id() 공개 메소드

Test updating a single product with an invalid ID.
부터: 2.7.0

test_update_product_without_permission() 공개 메소드

Test updating a single product without permission.
부터: 2.7.0