Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term.php

    r46586 r47122  
    5151         */
    5252        function test_is_term_type() {
    53                 // insert a term
     53                // Insert a term.
    5454                $term = rand_str();
    5555                $t    = wp_insert_term( $term, $this->taxonomy );
     
    5858                $this->assertEquals( $t['term_id'], term_exists( $term_obj->slug ) );
    5959
    60                 // clean up
     60                // Clean up.
    6161                $this->assertTrue( wp_delete_term( $t['term_id'], $this->taxonomy ) );
    6262        }
     
    6767        function test_wp_count_terms() {
    6868                $count = wp_count_terms( 'category', array( 'hide_empty' => true ) );
    69                 // there are 5 posts, all Uncategorized
     69                // There are 5 posts, all Uncategorized.
    7070                $this->assertEquals( 1, $count );
    7171        }
     
    136136                $this->assertEquals( $initial_count + 1, wp_count_terms( 'category' ) );
    137137
    138                 // make sure the term exists
     138                // Make sure the term exists.
    139139                $this->assertTrue( term_exists( $term ) > 0 );
    140140                $this->assertTrue( term_exists( $t ) > 0 );
    141141
    142                 // now delete it
     142                // Now delete it.
    143143                $this->assertTrue( wp_delete_category( $t ) );
    144144                $this->assertNull( term_exists( $term ) );
Note: See TracChangeset for help on using the changeset viewer.