File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ class CPTP_Module_Permalink_Test extends WP_UnitTestCase {
5
5
public $ post_type ;
6
6
public $ taxonomy ;
7
7
8
- public function setUp () {
8
+ public function set_up () {
9
9
/* @var WP_Rewrite $wp_rewrite */
10
10
global $ wp_rewrite ;
11
- parent ::setUp ();
11
+ parent ::set_up ();
12
12
13
13
delete_option ( 'category_base ' );
14
14
add_option ( 'category_base ' , rand_str ( 12 ) );
@@ -28,7 +28,7 @@ public function setUp() {
28
28
$ this ->taxonomy = 'ctax ' ;
29
29
}
30
30
31
- public function tearDown () {
31
+ public function tear_down () {
32
32
_unregister_post_type ( $ this ->post_type );
33
33
_unregister_taxonomy ( $ this ->taxonomy );
34
34
}
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ class CPTP_Module_Rewrite_Test extends WP_UnitTestCase {
5
5
public $ post_type ;
6
6
public $ taxonomy ;
7
7
8
- public function setUp () {
8
+ public function set_up () {
9
9
/** @var WP_Rewrite $wp_rewrite */
10
10
global $ wp_rewrite ;
11
11
12
- parent ::setUp ();
12
+ parent ::set_up ();
13
13
14
14
delete_option ( 'no_taxonomy_structure ' );
15
15
add_option ( 'no_taxonomy_structure ' , false );
@@ -29,7 +29,7 @@ public function setUp() {
29
29
$ this ->taxonomy = rand_str ( 12 );
30
30
}
31
31
32
- public function tearDown () {
32
+ public function tear_down () {
33
33
_unregister_post_type ( $ this ->post_type );
34
34
_unregister_taxonomy ( $ this ->taxonomy , $ this ->post_type );
35
35
}
Original file line number Diff line number Diff line change 2
2
3
3
class CPTP_Module_Setting_Test extends WP_UnitTestCase {
4
4
5
- public function setUp () {
5
+ public function set_up () {
6
6
/** @var WP_Rewrite $wp_rewrite */
7
7
global $ wp_rewrite ;
8
- parent ::setUp ();
8
+ parent ::set_up ();
9
9
10
10
$ wp_rewrite ->init ();
11
11
$ wp_rewrite ->set_permalink_structure ( '/%year%/%monthnum%/%day%/%postname%/ ' );
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ class CPTP_Util_Test extends WP_UnitTestCase {
13
13
/**
14
14
* Setup.
15
15
*/
16
- public function setUp () {
16
+ public function set_up () {
17
17
/**
18
18
* WP_Rewrite
19
19
*
20
20
* @var WP_Rewrite $wp_rewrite
21
21
*/
22
22
global $ wp_rewrite ;
23
- parent ::setUp ();
23
+ parent ::set_up ();
24
24
25
25
$ wp_rewrite ->init ();
26
26
$ wp_rewrite ->set_permalink_structure ( '/%year%/%monthnum%/%day%/%postname%/ ' );
You can’t perform that action at this time.
0 commit comments