Changeset 407 in tests for wp-testcase/test_post_output.php
- Timestamp:
- 08/04/2011 08:38:26 PM (15 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_post_output.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_post_output.php
r366 r407 98 98 [paragraph]my graf[/paragraph] 99 99 100 [paragraph foo="bar"]another graf with whitespace[/paragraph] 100 [paragraph foo="bar"]another graf with whitespace[/paragraph] 101 101 102 102 An [paragraph]inline graf[/paragraph], this doesn't make much sense. … … 137 137 $wp_rewrite->flush_rules(); 138 138 } 139 139 140 140 function test_the_content() { 141 141 // permalink page … … 144 144 // filtered output 145 145 $out = get_echo('the_content'); 146 146 147 147 $expected = <<<EOF 148 148 <p>There are ten images attached to this post. Here’s a gallery:</p> … … 207 207 function test_gallery_attributes() { 208 208 // make sure the gallery shortcode attributes are parsed correctly 209 209 210 210 $id = 575; 211 211 $post = get_post($id); 212 212 $post->post_content = '[gallery columns="1" size="medium"]'; 213 213 wp_update_post($post); 214 214 215 215 // permalink page 216 216 $this->http('/2008/04/01/simple-gallery-test/');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)