Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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/query/isTerm.php

    r46586 r47122  
    7878
    7979    function test_tag_action_tax() {
    80         // tag with tax added
     80        // Tag with taxonomy added.
    8181        $this->go_to( home_url( '/tag/tag-slug/' ) );
    8282        $this->assertQueryTrue( 'is_tag', 'is_archive' );
     
    8989
    9090    function test_tag_query_cat_action_tax() {
    91         // tag + category with tax added
     91        // Tag + category with taxonomy added.
    9292        $this->go_to( home_url( "/tag/tag-slug/?cat=$this->cat_id" ) );
    9393        $this->assertQueryTrue( 'is_category', 'is_tag', 'is_archive' );
     
    101101
    102102    function test_tag_query_cat_query_tax_action_tax() {
    103         // tag + category + tax with tax added
     103        // Tag + category + tax with taxonomy added.
    104104        $this->go_to( home_url( "/tag/tag-slug/?cat=$this->cat_id&testtax=tax-slug2" ) );
    105105        $this->assertQueryTrue( 'is_category', 'is_tag', 'is_tax', 'is_archive' );
     
    114114
    115115    function test_cat_action_tax() {
    116         // category with tax added
     116        // Category with taxonomy added.
    117117        $this->go_to( home_url( '/category/cat-slug/' ) );
    118118        $this->assertQueryTrue( 'is_category', 'is_archive' );
     
    128128     */
    129129    function test_cat_uncat_action_tax() {
    130         // category with tax added
     130        // Category with taxonomy added.
    131131        add_action( 'pre_get_posts', array( $this, '_cat_uncat_action_tax' ), 11 );
    132132
     
    154154     */
    155155    function test_tax_action_tax() {
    156         // tax with tax added
     156        // Taxonomy with taxonomy added.
    157157        $this->go_to( home_url( '/testtax/tax-slug2/' ) );
    158158        $this->assertQueryTrue( 'is_tax', 'is_archive' );
     
    164164
    165165    function test_tax_query_tag_action_tax() {
    166         // tax + tag with tax added
     166        // Taxonomy + tag with taxonomy added.
    167167        $this->go_to( home_url( "/testtax/tax-slug2/?tag_id=$this->tag_id" ) );
    168168        $this->assertQueryTrue( 'is_tag', 'is_tax', 'is_archive' );
     
    175175
    176176    function test_tax_query_cat_action_tax() {
    177         // tax + cat with tax added
     177        // Taxonomy + category with taxonomy added.
    178178        $this->go_to( home_url( "/testtax/tax-slug2/?cat=$this->cat_id" ) );
    179179        $this->assertQueryTrue( 'is_category', 'is_tax', 'is_archive' );
Note: See TracChangeset for help on using the changeset viewer.