Skip to content

Commit

Permalink
Fix unit test for test_taxonomy_made_sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Nov 16, 2015
1 parent a6709f1 commit dee04d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/php/test-fieldmanager-datasource-term.php
Expand Up @@ -330,10 +330,8 @@ public function test_taxonomy_made_sortable() {
// Create a custom taxonomy
register_taxonomy( $taxonomy, 'post' );

// Verify that tags, categories, and our custom tax are not sortable
// Verify that our custom taxonomy is not sortable
$this->assertTrue( empty( $wp_taxonomies[ $taxonomy ]->sort ) );
$this->assertTrue( empty( $wp_taxonomies['category']->sort ) );
$this->assertTrue( empty( $wp_taxonomies['post_tag']->sort ) );

new Fieldmanager_Autocomplete( array(
'name' => 'test_terms',
Expand All @@ -343,7 +341,9 @@ public function test_taxonomy_made_sortable() {
) ),
) );

// Verify that the above datasource made our taxonomies sortable
// Verify that the above datasource made our taxonomy sortable. Also,
// ensure that tags and categories are now sortable (even though they
// may have already been due to code run elsewhere).
$this->assertTrue( $wp_taxonomies[ $taxonomy ]->sort );
$this->assertTrue( $wp_taxonomies['category']->sort );
$this->assertTrue( $wp_taxonomies['post_tag']->sort );
Expand Down

0 comments on commit dee04d1

Please sign in to comment.