Changeset 43571 for trunk/tests/phpunit/tests/link/getPreviewPostLink.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/getPreviewPostLink.php
r42343 r43571 20 20 'bar' => 'baz', 21 21 'preview' => 'true', 22 ), get_permalink( $post ) 22 ), 23 get_permalink( $post ) 23 24 ); 24 25 25 26 $this->assertEquals( 26 $expected, get_preview_post_link( 27 $post, array( 27 $expected, 28 get_preview_post_link( 29 $post, 30 array( 28 31 'foo' => 'bar', 29 32 'bar' => 'baz', … … 39 42 40 43 $this->assertEquals( 41 $expected, get_preview_post_link( 42 $post, array( 44 $expected, 45 get_preview_post_link( 46 $post, 47 array( 43 48 'foo' => 'bar', 44 49 'bar' => 'baz', 45 ), 'https://google.com/' 50 ), 51 'https://google.com/' 46 52 ) 47 53 ); … … 64 70 public function test_get_preview_post_link_should_return_empty_string_for_non_viewable_post_type() { 65 71 $post_type = register_post_type( 66 'non_viewable_cpt', array( 72 'non_viewable_cpt', 73 array( 67 74 'public' => false, 68 75 )
Note: See TracChangeset
for help on using the changeset viewer.