- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/getThemeStarterContent.php
r39346 r42343 39 39 */ 40 40 $dehydrated_starter_content = array( 41 'widgets' => array(41 'widgets' => array( 42 42 'sidebar-1' => array( 43 43 'text_business_info', 44 'text_about' => array(44 'text_about' => array( 45 45 'title' => 'Our Story', 46 46 ), … … 53 53 'search', 54 54 'unknown', 55 'meta_custom' => array( 'meta', array( 56 'title' => 'Pre-hydrated meta widget.', 57 ) ), 58 ), 59 ), 60 'nav_menus' => array( 55 'meta_custom' => array( 56 'meta', 57 array( 58 'title' => 'Pre-hydrated meta widget.', 59 ), 60 ), 61 ), 62 ), 63 'nav_menus' => array( 61 64 'top' => array( 62 'name' => 'Menu Name',65 'name' => 'Menu Name', 63 66 'items' => array( 64 67 'page_home', … … 80 83 'link_youtube', 81 84 'link_unknown', 82 'link_custom' => array(85 'link_custom' => array( 83 86 'title' => 'Custom', 84 'url' => 'https://custom.example.com/',87 'url' => 'https://custom.example.com/', 85 88 ), 86 89 ), 87 90 ), 88 91 ), 89 'posts' => array(92 'posts' => array( 90 93 'home', 91 94 'about', 92 95 'contact', 93 'blog' => array(94 'template' => 'blog.php',96 'blog' => array( 97 'template' => 'blog.php', 95 98 'post_excerpt' => 'Extended', 96 99 ), … … 99 102 'unknown', 100 103 'custom' => array( 101 'post_type' => 'post',104 'post_type' => 'post', 102 105 'post_title' => 'Custom', 103 'thumbnail' => '{{featured-image-logo}}',106 'thumbnail' => '{{featured-image-logo}}', 104 107 ), 105 108 ), 106 109 'attachments' => array( 107 'featured-image-logo' => array(108 'post_title' => 'Title',110 'featured-image-logo' => array( 111 'post_title' => 'Title', 109 112 'post_content' => 'Description', 110 113 'post_excerpt' => 'Caption', 111 'file' => DIR_TESTDATA . '/images/waffles.jpg',114 'file' => DIR_TESTDATA . '/images/waffles.jpg', 112 115 ), 113 116 'featured-image-skipped' => array( … … 115 118 ), 116 119 ), 117 'options' => array(118 'show_on_front' => 'page',119 'page_on_front' => '{{home}}',120 'options' => array( 121 'show_on_front' => 'page', 122 'page_on_front' => '{{home}}', 120 123 'page_for_posts' => '{{blog}}', 121 124 ), 122 'theme_mods' => array(125 'theme_mods' => array( 123 126 'panel_1' => '{{homepage-section}}', 124 127 'panel_2' => '{{about}}', … … 172 175 function test_get_theme_starter_content_filter() { 173 176 174 add_theme_support( 'starter-content', 177 add_theme_support( 178 'starter-content', 175 179 array( 176 180 'widgets' => array( … … 199 203 $this->assertInternalType( 'array', $config ); 200 204 $this->assertCount( 1, $config['widgets']['sidebar-1'] ); 201 $content['widgets']['sidebar-1'][] = array( 'text', array( 202 'title' => 'Filtered Widget', 203 'text' => 'Custom ', 204 ) ); 205 $content['widgets']['sidebar-1'][] = array( 206 'text', 207 array( 208 'title' => 'Filtered Widget', 209 'text' => 'Custom ', 210 ), 211 ); 205 212 return $content; 206 213 }
Note: See TracChangeset
for help on using the changeset viewer.