Changeset 43571 for trunk/tests/phpunit/tests/admin/includesTheme.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesTheme.php
r42343 r43571 54 54 'Sub Dir' => 'subdir/template-sub-dir.php', 55 55 'This Template Header Is On One Line' => 'template-header.php', 56 ), get_page_templates() 56 ), 57 get_page_templates() 57 58 ); 58 59 … … 67 68 'Sub Dir' => 'subdir/template-sub-dir.php', 68 69 'This Template Header Is On One Line' => 'template-header.php', 69 ), get_page_templates() 70 ), 71 get_page_templates() 70 72 ); 71 73 } … … 84 86 'Top Level' => 'template-top-level-post-types.php', 85 87 'Sub Dir' => 'subdir/template-sub-dir-post-types.php', 86 ), get_page_templates( null, 'foo' ) 88 ), 89 get_page_templates( null, 'foo' ) 87 90 ); 88 91 $this->assertEqualSetsWithIndex( … … 90 93 'Top Level' => 'template-top-level-post-types.php', 91 94 'Sub Dir' => 'subdir/template-sub-dir-post-types.php', 92 ), get_page_templates( null, 'post' ) 95 ), 96 get_page_templates( null, 'post' ) 93 97 ); 94 98 $this->assertEquals( array(), get_page_templates( null, 'bar' ) ); … … 112 116 'Trailing White Space, Period.' => '38766/trailing-whitespace-period-post-types.php', 113 117 'Tilde in Post Type.' => '38766/tilde-post-types.php', 114 ), get_page_templates( null, 'period' ) 118 ), 119 get_page_templates( null, 'period' ) 115 120 ); 116 121 $this->assertEqualSetsWithIndex( … … 121 126 'Trailing Period, White Space.' => '38766/trailing-period-whitespace-post-types.php', 122 127 'Trailing White Space, Period.' => '38766/trailing-whitespace-period-post-types.php', 123 ), get_page_templates( null, 'full-stop' ) 128 ), 129 get_page_templates( null, 'full-stop' ) 124 130 ); 125 131 } … … 140 146 'Top Level In A Child Theme' => 'template-top-level-post-types-child.php', 141 147 'Sub Dir In A Child Theme' => 'subdir/template-sub-dir-post-types-child.php', 142 ), get_page_templates( null, 'foo' ) 148 ), 149 get_page_templates( null, 'foo' ) 143 150 ); 144 151 … … 147 154 'Top Level' => 'template-top-level-post-types.php', 148 155 'Sub Dir' => 'subdir/template-sub-dir-post-types.php', 149 ), get_page_templates( null, 'post' ) 156 ), 157 get_page_templates( null, 'post' ) 150 158 ); 151 159 … … 155 163 'Sub Dir' => 'subdir/template-sub-dir.php', 156 164 'This Template Header Is On One Line' => 'template-header.php', 157 ), get_page_templates() 165 ), 166 get_page_templates() 158 167 ); 159 168 … … 178 187 'template-top-level-post-types-child.php' => 'Top Level In A Child Theme', 179 188 'subdir/template-sub-dir-post-types-child.php' => 'Sub Dir In A Child Theme', 180 ), $post_templates['foo'] 189 ), 190 $post_templates['foo'] 181 191 ); 182 192 … … 185 195 'template-top-level-post-types.php' => 'Top Level', 186 196 'subdir/template-sub-dir-post-types.php' => 'Sub Dir', 187 ), $post_templates['post'] 197 ), 198 $post_templates['post'] 188 199 ); 189 200 … … 193 204 'subdir/template-sub-dir.php' => 'Sub Dir', 194 205 'template-header.php' => 'This Template Header Is On One Line', 195 ), $post_templates['page'] 206 ), 207 $post_templates['page'] 196 208 ); 197 209 }
Note: See TracChangeset
for help on using the changeset viewer.