forked from themeum/kirki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-kirki-helper.php
56 lines (52 loc) · 971 Bytes
/
test-kirki-helper.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
<?php
class Test_Kirki_Helper extends WP_UnitTestCase {
public function test() {
$tests = array(
'primary',
'red',
'pink',
'purple',
'deep-purple',
'indigo',
'blue',
'light_blue',
'cyan',
'teal',
'green',
'light-green',
'lime',
'yellow',
'amber',
'orange',
'deep-orange',
'brown',
'grey',
'blue-grey',
'50',
'100',
'200',
'300',
'400',
'500',
'600',
'700',
'800',
'900',
'A100',
'A200',
'A400',
'A700',
'all',
);
foreach ( $tests as $test ) {
$result = Kirki_Helper::get_material_design_colors( $test );
$this->assertTrue( is_array( $result ) );
$this->assertTrue( ! empty( $result ) );
}
global $wp_filesystem;
Kirki_Helper::init_filesystem();
$this->assertTrue( ! is_null( $wp_filesystem ) );
$this->assertTrue( is_array( Kirki_Helper::get_posts( array() ) ) );
$this->assertTrue( is_array( Kirki_Helper::get_taxonomies() ) );
}
}