-
Home
-
WP Document Revisions
-
3.4.0
-
Code
-
Classes
- Test_WP_Document_Revisions
Total Complexity |
21 |
Dependencies |
3 |
Dependents |
0 |
Total lines |
444 |
Lines of code |
265 |
Logical lines of code |
176 |
Comment lines |
106 |
Methods |
17 |
Properties |
3 |
Methods 17
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
wpSetUpBeforeClass() |
S |
45 |
2 |
48 |
test_workflow_states_exist() |
S |
58 |
2 |
16 |
test_author_caps() |
S |
51 |
1 |
27 |
test_contributor_caps() |
S |
51 |
1 |
27 |
test_subscriber_caps() |
S |
51 |
1 |
27 |
test_editor_caps() |
S |
53 |
1 |
21 |
test_non_logged_on_caps() |
S |
55 |
1 |
19 |
test_verify_post_type() |
S |
57 |
1 |
17 |
wpTearDownAfterClass() |
S |
63 |
2 |
10 |
role_has_cap() |
S |
64 |
2 |
9 |
test_get_attachments() |
S |
58 |
1 |
15 |
test_post_type_exists() |
S |
79 |
1 |
3 |
test_class_exists() |
S |
79 |
1 |
3 |
test_structure() |
S |
75 |
1 |
4 |
test_file_type() |
S |
67 |
1 |
7 |
test_get_revisions() |
S |
72 |
1 |
5 |
test_get_revision_number() |
S |
67 |
1 |
7 |