Make WordPress Core

Changeset 980 in tests


Ignore:
Timestamp:
08/21/2012 10:14:13 AM (14 years ago)
Author:
westi
Message:

Comments: Don't overtest by including extra assertions that test things other than the point of this test case.

Props nbachiyski for reminding me I was testing too much and adding test noise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/comment.php

    r979 r980  
    4040
    4141        $this->assertEquals( $this->comment_id, $result->comment_ID );
    42         $this->assertEquals( 0, $result->comment_parent );
    43         $this->assertEquals( $this->comment_data['comment_content'], $result->comment_content );
    44         $this->assertEquals( $this->post_id, $result->comment_post_ID );
    45         $this->assertEquals( $this->comment_data['comment_author'], $result->comment_author );
    46         $this->assertEquals( $this->comment_data['comment_author_url'], $result->comment_author_url );
    47         $this->assertEquals( $this->comment_data['comment_author_email'], $result->comment_author_email );
    4842    }
    4943}
Note: See TracChangeset for help on using the changeset viewer.