Properties

$ci

$ci : 

Type

$provider_id

$provider_id : 

Type

$customer_id

$customer_id : 

Type

$service_id

$service_id : 

Type

Methods

__construct()

__construct() 

Class Constructor

run_all()

run_all() 

Run all the available tests

test_add_appointment_insert()

test_add_appointment_insert() 

Test the appointment add method - insert new record.

test_add_appointment_update()

test_add_appointment_update() 

Test the appointment add method - update existing record.

test_add_appointment_wrong_date_format()

test_add_appointment_wrong_date_format() 

Test appointment data insertion with wrong date format for the corresponding datetime db fields.

test_exists()

test_exists() 

Test the exists() method.

Insert a new appointment and test if it exists.

test_exists_record_does_not_exist()

test_exists_record_does_not_exist() 

test_exists_with_wrong_data()

test_exists_with_wrong_data() 

test_find_record_id()

test_find_record_id() 

Test the find record id method with a record that already exists in the database.

test_find_record_id_appointment_does_not_exist()

test_find_record_id_appointment_does_not_exist() 

Try to find the record id of an appointment that doesn't exist in the database.

A database exception is expected to be raised.

test_find_record_id_wrong_data()

test_find_record_id_wrong_data() 

Test the find_record_id() method by providing wrong appointment data.

A database exception is expected to be raised.

test_delete()

test_delete() 

Test the normal flow of deleting an appointment record.

test_delete_record_does_not_exist()

test_delete_record_does_not_exist() 

Test the delete method with a record that doesn't exist in the database.

test_delete_record_wrong_parameter_given()

test_delete_record_wrong_parameter_given() 

Test the delete method by providing a wrong argument (string and not integer).

test_get_batch()

test_get_batch() 

Test the get_batch() method of the appointments model.

test_get_batch_where_clause()

test_get_batch_where_clause() 

Test the get_batch() method of the appointments model with a where clause.

unabled_test_get_batch_wrong_where_clause()

unabled_test_get_batch_wrong_where_clause() 

Test the get_batch() method of the appointments model with a wrong where clause.

A database exception is expected to be raised.

IMPORTANT! This test is unabled because code igniter handles itself wrong queries.

test_get_row()

test_get_row() 

Test get_row() method.

test_get_row_that_does_not_exist()

test_get_row_that_does_not_exist() 

Test get_row() with a record that doesn't exist in the db.

test_get_row_with_invalid_argument()

test_get_row_with_invalid_argument() 

Test get_row() method with wrong argument.

A database exception is expected.

test_get_value()

test_get_value() 

Test the get field value method.

test_get_value_record_does_not_exist()

test_get_value_record_does_not_exist() 

Test the get field value method with a record id that doesn't exist in the db.

A database exception is expected.

test_get_value_field_does_not_exist()

test_get_value_field_does_not_exist() 

Test the get_value() method with a field that does not exist in the db.

A database exception is expected.

test_validate_data()

test_validate_data() 

test_validate_data_wrong_date_format()

test_validate_data_wrong_date_format() 

test_validate_data_invalid_provider_id()

test_validate_data_invalid_provider_id() 

test_validate_data_invalid_customer_id()

test_validate_data_invalid_customer_id() 

test_validate_data_invalid_service_id()

test_validate_data_invalid_service_id()