From a540b1dd58f18b15436f56b5a18d2b98f1eb98dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Santos?= <3957598+gadelhas@users.noreply.github.com> Date: Tue, 2 Jan 2024 23:32:03 +0000 Subject: [PATCH] Remove testing for non existent post type as you can't create a post with wrong post type. --- tests/phpunit/tests/oembed/template.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/phpunit/tests/oembed/template.php b/tests/phpunit/tests/oembed/template.php index 9d210f96aaae8..03ef61b156df4 100644 --- a/tests/phpunit/tests/oembed/template.php +++ b/tests/phpunit/tests/oembed/template.php @@ -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 */