Skip to content

Commit

Permalink
Remove testing for non existent post type as you can't create a post …
Browse files Browse the repository at this point in the history
…with wrong post type.
  • Loading branch information
gadelhas committed Jan 2, 2024
1 parent 46174d5 commit a540b1d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/phpunit/tests/oembed/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,19 +353,6 @@ public function test_is_embeddable_post_non_existent_post() {
$this->assertFalse( is_post_embeddable( 0 ) );
}

/**
* @ticket 35567
*/
public function test_is_embeddable_post_non_existent_post_type() {
$post = self::factory()->post->create_and_get(
array(
'post_type' => rand_str(),
)
);

$this->assertFalse( is_post_embeddable( $post ) );
}

/**
* @ticket 35567
*/
Expand Down

0 comments on commit a540b1d

Please sign in to comment.