mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user