WordPress.org

Make WordPress Core

Changeset 967 in tests for trunk/tests/ajax/GetComments.php


Ignore:
Timestamp:
08/13/2012 09:07:27 PM (9 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/ajax/GetComments.php

    r924 r967  
    2121     */
    2222    protected $_comment_post = null;
    23    
     23
    2424    /**
    2525     * A post with no comments
     
    5555        $_POST['action']      = 'get-comments';
    5656        $_POST['p']           = $this->_comment_post->ID;
    57        
     57
    5858        // Make the request
    5959        try {
     
    7070        $this->assertEquals( 0, (string) $xml->response[0]->comments['id'] );
    7171        $this->assertEquals( 'get-comments_0', (string) $xml->response['action'] );
    72        
     72
    7373        // Check the payload
    7474        $this->assertNotEmpty( (string) $xml->response[0]->comments[0]->response_data );
    75        
     75
    7676        // And supplemental is empty
    7777        $this->assertEmpty( (string) $xml->response[0]->comments[0]->supplemental );
     
    8585    public function test_as_subscriber() {
    8686
    87         // Become a subscriber     
     87        // Become a subscriber
    8888        $this->_setRole( 'subscriber' );
    8989
Note: See TracChangeset for help on using the changeset viewer.