Changeset 34519
- Timestamp:
- 09/24/2015 09:01:10 PM (9 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/sanitize-option.php
r33907 r34519 41 41 array( 'siteurl', 'http://example.org/subdir', 'http://example.org/subdir' ), 42 42 array( 'siteurl', get_option( 'siteurl' ), '' ), 43 array( 'home', 'http://example.org', ' example.org' ),43 array( 'home', 'http://example.org', 'http://example.org' ), 44 44 array( 'home', 'https://example.org', 'https://example.org' ), 45 45 array( 'home', 'http://localhost:8000', 'http://localhost:8000' ), -
trunk/tests/phpunit/tests/term/getEditTermLink.php
r32954 r34519 18 18 19 19 $actual = get_edit_term_link( $term1, 'wptests_tax' ); 20 $expected = 'http:// example.org/wp-admin/edit-tags.php?action=edit&taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post';20 $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/edit-tags.php?action=edit&taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post'; 21 21 $this->assertEquals( $expected, $actual ); 22 22 } -
trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
r32996 r34519 94 94 'hide_empty' => false, 95 95 ), 96 "<a href='http:// example.org/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a>",96 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a>", 97 97 array( 98 98 'hide_empty' => false, … … 108 108 ), 109 109 array( 110 "<a href='http:// example.org/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a>",110 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a>", 111 111 ), 112 112 array( … … 123 123 'hide_empty' => false, 124 124 ), 125 "<ul class='wp-tag-cloud'>\n\t<li><a href='http:// example.org/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a></li>\n</ul>\n",125 "<ul class='wp-tag-cloud'>\n\t<li><a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a></li>\n</ul>\n", 126 126 array( 127 127 'hide_empty' => false, … … 136 136 'hide_empty' => false, 137 137 ), 138 "<a href='http:// example.org/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a>\n".139 "<a href='http:// example.org/?tag=term-2' class='tag-link-1' title='0 topics' style='font-size: 8pt;'>Term 2</a>\n".140 "<a href='http:// example.org/?tag=term-3' class='tag-link-2' title='0 topics' style='font-size: 8pt;'>Term 3</a>\n".141 "<a href='http:// example.org/?tag=term-4' class='tag-link-3' title='0 topics' style='font-size: 8pt;'>Term 4</a>",138 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a>\n". 139 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-2' class='tag-link-1' title='0 topics' style='font-size: 8pt;'>Term 2</a>\n". 140 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-3' class='tag-link-2' title='0 topics' style='font-size: 8pt;'>Term 3</a>\n". 141 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-4' class='tag-link-3' title='0 topics' style='font-size: 8pt;'>Term 4</a>", 142 142 array( 143 143 'hide_empty' => false, … … 152 152 ), 153 153 "<ul class='wp-tag-cloud'>\n\t<li>". 154 "<a href='http:// example.org/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a></li>\n\t<li>".155 "<a href='http:// example.org/?tag=term-2' class='tag-link-1' title='0 topics' style='font-size: 8pt;'>Term 2</a></li>\n\t<li>".156 "<a href='http:// example.org/?tag=term-3' class='tag-link-2' title='0 topics' style='font-size: 8pt;'>Term 3</a></li>\n\t<li>".157 "<a href='http:// example.org/?tag=term-4' class='tag-link-3' title='0 topics' style='font-size: 8pt;'>Term 4</a>".154 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-1' class='tag-link-0' title='0 topics' style='font-size: 8pt;'>Term 1</a></li>\n\t<li>". 155 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-2' class='tag-link-1' title='0 topics' style='font-size: 8pt;'>Term 2</a></li>\n\t<li>". 156 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-3' class='tag-link-2' title='0 topics' style='font-size: 8pt;'>Term 3</a></li>\n\t<li>". 157 "<a href='http://" . WP_TESTS_DOMAIN . "/?tag=term-4' class='tag-link-3' title='0 topics' style='font-size: 8pt;'>Term 4</a>". 158 158 "</li>\n</ul>\n", 159 159 array(
Note: See TracChangeset
for help on using the changeset viewer.