-
Home
-
WP eCommerce
-
3.15.1 (latest)
-
Code
-
Classes
- TestWPSCCouponClass
Total Complexity |
19 |
Dependencies |
1 |
Dependents |
0 |
Total lines |
362 |
Lines of code |
251 |
Logical lines of code |
102 |
Comment lines |
3 |
Methods |
16 |
Properties |
0 |
Methods 16
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
setup_test_data() |
S |
37 |
1 |
108 |
test_coupon_data() |
S |
54 |
2 |
20 |
test_save() |
S |
61 |
2 |
13 |
test_get_code() |
S |
62 |
2 |
12 |
get_test_conditions() |
S |
60 |
1 |
16 |
test_insert_coupon() |
S |
58 |
1 |
16 |
setUp() |
S |
76 |
1 |
5 |
tearDown() |
S |
82 |
1 |
3 |
set_current_user_role() |
S |
76 |
1 |
4 |
test_invalid_coupon_construct() |
S |
68 |
1 |
8 |
test_delete_coupon() |
S |
67 |
1 |
8 |
test_is_free_shipping() |
S |
68 |
1 |
8 |
test_is_coupon_used() |
S |
66 |
1 |
9 |
test_coupon_has_conditions() |
S |
71 |
1 |
6 |
test_coupon_conditions() |
S |
68 |
1 |
7 |
test_active() |
S |
68 |
1 |
8 |