diff --git a/tests/phpunit/tests/admin/includesComment.php b/tests/phpunit/tests/admin/includesComment.php new file mode 100644 index 0000000000..2b3d915ec1 --- /dev/null +++ b/tests/phpunit/tests/admin/includesComment.php @@ -0,0 +1,22 @@ +factory->comment->create( array( + 'comment_author' => 'foo', + 'comment_date' => '2014-05-06 12:00:00', + ) ); + + $c2 = $this->factory->comment->create( array( + 'comment_author' => 'bar', + 'comment_date' => '2004-01-02 12:00:00', + ) ); + + $this->assertNull( comment_exists( 'foo', '2004-01-02 12:00:00' ) ); + $this->assertEquals( $c1, comment_exists( 'foo', '2014-05-06 12:00:00' ) ); + } +}