PHP Class Customers

Inheritance: extends CI_Controller
Afficher le fichier Open project: woocommerce/woocommerce Class Usage Examples

Méthodes publiques

Méthode Description
setUp ( ) Setup our test server, endpoints, and user info.
test_batch_customer ( ) Test customer batch endpoint.
test_create_customer ( ) Test creating a new customer.
test_create_customer_without_permission ( ) Test creating customers without valid permissions.
test_customer_schema ( ) Test customer schema.
test_delete_customer ( ) Test deleting a customer.
test_delete_customer_invalid_id ( ) Test deleting a customer with an invalid ID.
test_delete_customer_without_permission ( ) Test deleting a customer without valid permissions.
test_get_customer ( ) Test getting a single customer.
test_get_customer_invalid_id ( ) Test getting a single customer with an invalid ID.
test_get_customer_without_permission ( ) Test getting a single customer without valid permissions.
test_get_customers ( ) Test getting customers.
test_get_customers_without_permission ( ) Test getting customers without valid permissions.
test_register_routes ( ) Test route registration.
test_update_customer ( ) Test updating a customer.
test_update_customer_invalid_id ( ) Test updating a customer with an invalid ID.
test_update_customer_without_permission ( ) Test updating a customer without valid permissions.

Method Details

setUp() public méthode

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

test_batch_customer() public méthode

Test customer batch endpoint.
Since: 2.7.0
public test_batch_customer ( )

test_create_customer() public méthode

Test creating a new customer.
Since: 2.7.0

test_create_customer_without_permission() public méthode

Test creating customers without valid permissions.
Since: 2.7.0

test_customer_schema() public méthode

Test customer schema.
Since: 2.7.0

test_delete_customer() public méthode

Test deleting a customer.
Since: 2.7.0

test_delete_customer_invalid_id() public méthode

Test deleting a customer with an invalid ID.
Since: 2.7.0

test_delete_customer_without_permission() public méthode

Test deleting a customer without valid permissions.
Since: 2.7.0

test_get_customer() public méthode

Test getting a single customer.
Since: 2.7.0
public test_get_customer ( )

test_get_customer_invalid_id() public méthode

Test getting a single customer with an invalid ID.
Since: 2.7.0

test_get_customer_without_permission() public méthode

Test getting a single customer without valid permissions.
Since: 2.7.0

test_get_customers() public méthode

Test getting customers.
Since: 2.7.0
public test_get_customers ( )

test_get_customers_without_permission() public méthode

Test getting customers without valid permissions.
Since: 2.7.0

test_register_routes() public méthode

Test route registration.
Since: 2.7.0

test_update_customer() public méthode

Test updating a customer.
Since: 2.7.0

test_update_customer_invalid_id() public méthode

Test updating a customer with an invalid ID.
Since: 2.7.0

test_update_customer_without_permission() public méthode

Test updating a customer without valid permissions.
Since: 2.7.0