| @@ 1128-1136 (lines=9) @@ | ||
| 1125 | return false; |
|
| 1126 | } |
|
| 1127 | ||
| 1128 | function test_sync_call_ables_does_not_modify_globals() { |
|
| 1129 | global $wp_taxonomies; |
|
| 1130 | // assert that $wp_taxonomy object stays an array. |
|
| 1131 | $this->assertTrue( is_array( $wp_taxonomies['category']->rewrite ) ); |
|
| 1132 | $this->setSyncClientDefaults(); |
|
| 1133 | $this->full_sync->start(); |
|
| 1134 | $this->sender->do_full_sync(); |
|
| 1135 | $this->assertTrue( is_array( $wp_taxonomies['category']->rewrite ) ); |
|
| 1136 | } |
|
| 1137 | ||
| 1138 | function test_initial_sync_doesnt_sync_subscribers() { |
|
| 1139 | $this->factory->user->create( array( 'user_login' => 'theauthor', 'role' => 'author' ) ); |
|
| @@ 1480-1488 (lines=9) @@ | ||
| 1477 | } |
|
| 1478 | } |
|
| 1479 | ||
| 1480 | function test_sync_call_ables_does_not_modify_globals() { |
|
| 1481 | global $wp_taxonomies; |
|
| 1482 | // assert that $wp_taxonomy object stays an array. |
|
| 1483 | $this->assertTrue( is_array( $wp_taxonomies['category']->rewrite ) ); |
|
| 1484 | $this->setSyncClientDefaults(); |
|
| 1485 | $this->full_sync->start(); |
|
| 1486 | $this->sender->do_full_sync(); |
|
| 1487 | $this->assertTrue( is_array( $wp_taxonomies['category']->rewrite ) ); |
|
| 1488 | } |
|
| 1489 | ||
| 1490 | function test_initial_sync_doesnt_sync_subscribers() { |
|
| 1491 | $this->factory->user->create( array( 'user_login' => 'theauthor', 'role' => 'author' ) ); |
|