@@ -183,45 +183,6 @@ public function test_page_templates_child_theme() {
183183 $ this ->assertSame ( array (), get_page_templates ( null , 'bar ' ) );
184184 }
185185
186- /**
187- * @ticket 41717
188- */
189- public function test_get_post_templates_child_theme () {
190- $ theme = wp_get_theme ( 'page-templates-child ' );
191- $ this ->assertNotEmpty ( $ theme );
192-
193- switch_theme ( $ theme ['Template ' ], $ theme ['Stylesheet ' ] );
194-
195- $ post_templates = $ theme ->get_post_templates ();
196-
197- $ this ->assertSameSetsWithIndex (
198- array (
199- 'template-top-level-post-types.php ' => 'Top Level ' ,
200- 'subdir/template-sub-dir-post-types.php ' => 'Sub Dir ' ,
201- 'template-top-level-post-types-child.php ' => 'Top Level In A Child Theme ' ,
202- 'subdir/template-sub-dir-post-types-child.php ' => 'Sub Dir In A Child Theme ' ,
203- ),
204- $ post_templates ['foo ' ]
205- );
206-
207- $ this ->assertSameSetsWithIndex (
208- array (
209- 'template-top-level-post-types.php ' => 'Top Level ' ,
210- 'subdir/template-sub-dir-post-types.php ' => 'Sub Dir ' ,
211- ),
212- $ post_templates ['post ' ]
213- );
214-
215- $ this ->assertSameSetsWithIndex (
216- array (
217- 'template-top-level.php ' => 'Top Level ' ,
218- 'subdir/template-sub-dir.php ' => 'Sub Dir ' ,
219- 'template-header.php ' => 'This Template Header Is On One Line ' ,
220- ),
221- $ post_templates ['page ' ]
222- );
223- }
224-
225186 /**
226187 * Test that the list of theme features pulled from the WordPress.org API returns the expected data structure.
227188 *
0 commit comments