Changeset 42343 for trunk/tests/phpunit/tests/rewrite/permastructs.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/rewrite/permastructs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite/permastructs.php
r36183 r42343 12 12 } 13 13 14 public function test_add_permastruct( ) {14 public function test_add_permastruct() { 15 15 global $wp_rewrite; 16 16 17 17 add_permastruct( 'foo', 'bar/%foo%' ); 18 $this->assertEqualSetsWithIndex( array( 19 'with_front' => true, 20 'ep_mask' => EP_NONE, 21 'paged' => true, 22 'feed' => true, 23 'walk_dirs' => true, 24 'endpoints' => true, 25 'forcomments' => false, 26 'struct' => '/bar/%foo%', 27 ), $wp_rewrite->extra_permastructs['foo'] ); 18 $this->assertEqualSetsWithIndex( 19 array( 20 'with_front' => true, 21 'ep_mask' => EP_NONE, 22 'paged' => true, 23 'feed' => true, 24 'walk_dirs' => true, 25 'endpoints' => true, 26 'forcomments' => false, 27 'struct' => '/bar/%foo%', 28 ), $wp_rewrite->extra_permastructs['foo'] 29 ); 28 30 } 29 31 30 public function test_remove_permastruct( ) {32 public function test_remove_permastruct() { 31 33 global $wp_rewrite; 32 34
Note: See TracChangeset
for help on using the changeset viewer.