Changeset 43571 for trunk/tests/phpunit/tests/post/isPostTypeViewable.php
- Timestamp:
- 08/17/2018 01:50:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/isPostTypeViewable.php
r42343 r43571 7 7 public function test_should_return_false_for_non_publicly_queryable_types() { 8 8 register_post_type( 9 'wptests_pt', array( 9 'wptests_pt', 10 array( 10 11 'publicly_queryable' => false, 11 12 '_builtin' => false, … … 21 22 public function test_should_return_true_for_publicly_queryable_types() { 22 23 register_post_type( 23 'wptests_pt', array( 24 'wptests_pt', 25 array( 24 26 'publicly_queryable' => true, 25 27 '_builtin' => false, … … 35 37 public function test_should_return_false_for_builtin_nonpublic_types() { 36 38 register_post_type( 37 'wptests_pt', array( 39 'wptests_pt', 40 array( 38 41 'publicly_queryable' => false, 39 42 '_builtin' => true, … … 49 52 public function test_should_return_false_for_nonbuiltin_public_types() { 50 53 register_post_type( 51 'wptests_pt', array( 54 'wptests_pt', 55 array( 52 56 'publicly_queryable' => false, 53 57 '_builtin' => false, … … 63 67 public function test_should_return_true_for_builtin_public_types() { 64 68 register_post_type( 65 'wptests_pt', array( 69 'wptests_pt', 70 array( 66 71 'publicly_queryable' => false, 67 72 '_builtin' => true, … … 88 93 public function test_should_accept_post_type_name() { 89 94 register_post_type( 90 'wptests_pt', array( 95 'wptests_pt', 96 array( 91 97 'publicly_queryable' => true, 92 98 '_builtin' => false,
Note: See TracChangeset
for help on using the changeset viewer.