forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
test-related-content.php
133 lines (95 loc) · 3.31 KB
/
test-related-content.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
// Test functions in inc/related-content.php
class RelatedContentTestFunctions extends wp_UnitTestCase{
function setUp() {
parent::setUp();
}
function test_largo_get_related_topics_for_category() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test__tags_associated_with_category() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test__subcategories_for_category() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_get_post_related_topics() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_get_recent_posts_for_term() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_has_categories_or_tags() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_categories_and_tags() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_top_term() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_filter_get_post_related_topics() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_largo_filter_get_recent_posts_for_term_query_args() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
}
class LargoRelatedTestFunctions extends WP_UnitTestCase {
function setUp() {
parent::setUp();
}
function test___construct() {
// check that Largo_Related->number equals 1 if number is not set
// check that Largo_Related->post_id is the value of the set post, or the value of the global post
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_popularity_sort() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* Test the function with a lot of different conditions
*
* - Series without organization
* - Series with CFTL post with organization information
* - ASC
* - series_custom
* - DESC
* - featured, DESC
* - featured, ASC
* - No series, but category
* - No series, but tag
* - Tags and Categories
* - No series or category or tag
*/
function test_unorganized_series() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_series_asc() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_series_series_custom() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_series_desc() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_series_featured_desc() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_series_featured_asc() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_category() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_tags() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_category_and_tag() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
function test_recent_posts() {
$this->markTestIncomplete('This test has not been implemented yet.');
}
}