Changeset 36986 for trunk/tests/phpunit/tests/term/getEditTermLink.php
- Timestamp:
- 03/14/2016 01:51:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getEditTermLink.php
r36874 r36986 69 69 public function test_cap_check_should_use_correct_taxonomy_when_taxonomy_is_not_specified() { 70 70 register_taxonomy( 'wptests_tax_subscriber', 'post', array( 71 'manage_terms' => 'read', 71 'capabilities' => array( 72 'edit_terms' => 'read', 73 ), 72 74 ) ); 73 75 74 76 $t = self::factory()->term->create( array( 75 'taxonomy' => 'wptests_tax ',77 'taxonomy' => 'wptests_tax_subscriber', 76 78 'name' => 'foo', 77 79 ) ); … … 83 85 84 86 $actual = get_edit_term_link( $t ); 85 $this->assertN ull( $actual );87 $this->assertNotNull( $actual ); 86 88 } 87 89 }
Note: See TracChangeset
for help on using the changeset viewer.