tests/phpunit/includes/testcase-canonical.php 1 location
|
@@ 29-38 (lines=10) @@
|
| 26 |
|
self::delete_shared_fixtures(); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function setUp() |
| 30 |
|
{ |
| 31 |
|
parent::setUp(); |
| 32 |
|
|
| 33 |
|
update_option('page_comments', true); |
| 34 |
|
update_option('comments_per_page', 5); |
| 35 |
|
update_option('posts_per_page', 5); |
| 36 |
|
|
| 37 |
|
$this->set_permalink_structure($this->structure); |
| 38 |
|
create_initial_taxonomies(); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
/** |
tests/phpunit/tests/canonical/https.php 1 location
|
@@ 10-18 (lines=9) @@
|
| 7 |
|
*/ |
| 8 |
|
class Tests_Canonical_HTTPS extends WP_Canonical_UnitTestCase |
| 9 |
|
{ |
| 10 |
|
function setUp() |
| 11 |
|
{ |
| 12 |
|
parent::setUp(); |
| 13 |
|
|
| 14 |
|
$this->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/'); |
| 15 |
|
create_initial_taxonomies(); |
| 16 |
|
|
| 17 |
|
$this->http = set_url_scheme(home_url('sample-page/'), 'http'); |
| 18 |
|
$this->https = set_url_scheme(home_url('sample-page/'), 'https'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
public function set_https( $url ) |
tests/phpunit/tests/feed/rss2.php 1 location
|
@@ 64-74 (lines=11) @@
|
| 61 |
|
/** |
| 62 |
|
* Setup. |
| 63 |
|
*/ |
| 64 |
|
public function setUp() |
| 65 |
|
{ |
| 66 |
|
parent::setUp(); |
| 67 |
|
|
| 68 |
|
$this->post_count = (int) get_option('posts_per_rss'); |
| 69 |
|
$this->excerpt_only = get_option('rss_use_excerpt'); |
| 70 |
|
// this seems to break something |
| 71 |
|
update_option('use_smilies', false); |
| 72 |
|
|
| 73 |
|
$this->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/'); |
| 74 |
|
create_initial_taxonomies(); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
tests/phpunit/tests/query/conditionals.php 1 location
|
@@ 18-29 (lines=12) @@
|
| 15 |
|
protected $page_ids; |
| 16 |
|
protected $post_ids; |
| 17 |
|
|
| 18 |
|
function setUp() |
| 19 |
|
{ |
| 20 |
|
parent::setUp(); |
| 21 |
|
|
| 22 |
|
set_current_screen('front'); |
| 23 |
|
|
| 24 |
|
update_option('comments_per_page', 5); |
| 25 |
|
update_option('posts_per_page', 5); |
| 26 |
|
|
| 27 |
|
$this->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/'); |
| 28 |
|
|
| 29 |
|
create_initial_taxonomies(); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
function test_home() |