From 7e7315ba22fcbf622362098a5f2f8273111e788e Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Wed, 10 Jan 2024 21:12:07 +0000 Subject: [PATCH] Tests: Fix tests following r57265. Update unit tests failing after r57265 changed strings in single post template descriptions. Follow up to [57265]. Props joedolson. Fixes #60216. git-svn-id: https://develop.svn.wordpress.org/trunk@57266 602fd350-edb4-49c9-b593-d223f7449a82 --- .../block-templates/buildBlockTemplateResultFromFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/block-templates/buildBlockTemplateResultFromFile.php b/tests/phpunit/tests/block-templates/buildBlockTemplateResultFromFile.php index efc93d6ac3..3aedcf0c2c 100644 --- a/tests/phpunit/tests/block-templates/buildBlockTemplateResultFromFile.php +++ b/tests/phpunit/tests/block-templates/buildBlockTemplateResultFromFile.php @@ -26,7 +26,7 @@ class Tests_Block_Templates_BuildBlockTemplateResultFromFile extends WP_Block_Te $this->assertSame( 'publish', $template->status ); $this->assertSame( 'theme', $template->source ); $this->assertSame( 'Single Posts', $template->title ); - $this->assertSame( 'Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.', $template->description ); + $this->assertSame( 'Displays a single post on your website unless a custom template has been applied to that post or a dedicated template exists.', $template->description ); $this->assertSame( 'wp_template', $template->type ); $this->assertEmpty( $template->modified ); } @@ -64,7 +64,7 @@ class Tests_Block_Templates_BuildBlockTemplateResultFromFile extends WP_Block_Te $this->assertSame( 'single', $template->slug ); $this->assertSame( 'Single Posts', $template->title ); - $this->assertSame( 'Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.', $template->description ); + $this->assertSame( 'Displays a single post on your website unless a custom template has been applied to that post or a dedicated template exists.', $template->description ); $this->assertFalse( $template->is_custom ); }