Changeset 42382 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 12/10/2017 12:30:32 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r42343 r42382 67 67 $post_id = self::factory()->post->create(); 68 68 69 ob_start(); 69 $this->expectOutputString( sprintf( 70 'Categories: <a href="%s">Uncategorized</a>.', 71 get_category_link( 1 ) 72 ) ); 70 73 the_taxonomies( array( 'post' => $post_id ) ); 71 $output = ob_get_clean();72 73 $link = get_category_link( 1 );74 $expected = 'Categories: <a href="' . $link . '">Uncategorized</a>.';75 $this->assertEquals( $expected, $output );76 74 } 77 75
Note: See TracChangeset
for help on using the changeset viewer.