mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Themes: Add test for theme atttibute in file-based block template.
While we already have unit test coverage for `_inject_theme_attribute_in_block_template_content`, those tests only verify that ''that'' function does what is supposed to do; there's however no guarantee that `_build_block_template_result_from_file` uses that function (or whatever other technique) to actually inject the theme attribute. This patch adds test coverage to verify that the theme attribute is correctly injected by `_build_block_template_result_from_file`. Props costdev, gziolo, mukesh27, spacedmonkey. Fixes #59325. See #59313. git-svn-id: https://develop.svn.wordpress.org/trunk@56562 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<!-- wp:group -->
|
||||
<!-- wp:template-part {"slug":"header","align":"full", "tagName":"header","className":"site-header"} /-->
|
||||
<!-- /wp:group -->
|
||||
+1
@@ -0,0 +1 @@
|
||||
<!-- wp:template-part {"slug":"header","theme":"fake-theme","align":"full", "tagName":"header","className":"site-header"} /-->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- wp:template-part {"slug":"header","align":"full", "tagName":"header","className":"site-header"} /-->
|
||||
Reference in New Issue
Block a user