1 | <?php |
||
17 | class WP_Test_MslsAdmin extends Msls_UnitTestCase { |
||
18 | |||
19 | function get_test() { |
||
25 | |||
26 | function test_has_problems_no_problem() { |
||
36 | |||
37 | function test_has_problems_one_language() { |
||
49 | |||
50 | function test_has_problems_is_empty() { |
||
62 | |||
63 | public function test_subsubsub_empty() { |
||
68 | |||
69 | /* function test_subsubsub_two_blogs() { |
||
70 | $options = $this->getMockBuilder( MslsOptions::class )->getMock(); |
||
71 | |||
72 | $blog_1 = $this->getMockBuilder( MslsBlog::class)->disableOriginalConstructor()->getMock(); |
||
73 | $blog_1->userblog_id = 1; |
||
74 | $blog_1->blogname = 'Test 1'; |
||
75 | $blog_1->method( 'get_description' )->willReturn( 'Descr 1' ); |
||
76 | |||
77 | $blog_2 = $this->getMockBuilder( MslsBlog::class)->disableOriginalConstructor()->getMock(); |
||
78 | $blog_2->userblog_id = 2; |
||
79 | $blog_2->blogname = 'Test 2'; |
||
80 | $blog_2->method( 'get_description' )->willReturn( 'Descr 2' ); |
||
81 | |||
82 | $collection = $this->getMockBuilder( MslsBlogCollection::class)->getMock(); |
||
83 | $collection->method( 'get_plugin_active_blogs' )->willReturn( [ $blog_1, $blog_2 ] ); |
||
84 | $collection->method( 'get_current_blog_id' )->willReturn( 1 ); |
||
85 | |||
86 | $obj = new MslsAdmin( $options, $collection ); |
||
87 | |||
88 | $this->assertInternalType( 'string', $obj->subsubsub() ); |
||
89 | } */ |
||
90 | |||
91 | /** |
||
92 | * Verify the blog_language-method |
||
93 | */ |
||
94 | function test_blog_language() { |
||
100 | |||
101 | /** |
||
102 | * Verify the display-method |
||
103 | */ |
||
104 | function test_display() { |
||
110 | |||
111 | /** |
||
112 | * Verify the reference_user-method |
||
113 | */ |
||
114 | function test_reference_user() { |
||
120 | |||
121 | /** |
||
122 | * Verify the activate_autocomplete-method |
||
123 | */ |
||
124 | function test_activate_autocomplete() { |
||
130 | |||
131 | /** |
||
132 | * Verify the sort_by_description-method |
||
133 | */ |
||
134 | function test_sort_by_description() { |
||
140 | |||
141 | /** |
||
142 | * Verify the exclude_current_blog-method |
||
143 | */ |
||
144 | function test_exclude_current_blog() { |
||
150 | |||
151 | /** |
||
152 | * Verify the only_with_translation-method |
||
153 | */ |
||
154 | function test_only_with_translation() { |
||
160 | |||
161 | /** |
||
162 | * Verify the output_current_blog-method |
||
163 | */ |
||
164 | function test_output_current_blog() { |
||
170 | |||
171 | /** |
||
172 | * Verify the description-method |
||
173 | */ |
||
174 | function test_description() { |
||
180 | |||
181 | /** |
||
182 | * Verify the content_filter-method |
||
183 | */ |
||
184 | function test_content_filter() { |
||
190 | |||
191 | /** |
||
192 | * Verify the content_priority-method |
||
193 | */ |
||
194 | function test_content_priority() { |
||
200 | |||
201 | /** |
||
202 | * Verify the render_checkbox-method |
||
203 | */ |
||
204 | function test_render_checkbox() { |
||
209 | |||
210 | /** |
||
211 | * Verify the render_input-method |
||
212 | */ |
||
213 | function test_render_input() { |
||
218 | |||
219 | /** |
||
220 | * Verify the render_select-method |
||
221 | */ |
||
222 | function test_render_select() { |
||
228 | |||
229 | /** |
||
230 | * Verify the validate-method |
||
231 | */ |
||
232 | function test_validate() { |
||
240 | |||
241 | /** |
||
242 | * Verify the set_blog_language-method |
||
243 | */ |
||
244 | function test_set_blog_language() { |
||
250 | |||
251 | } |
||
252 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.