Changeset 35242 for trunk/tests/phpunit/tests/admin/includesComment.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesComment.php
r35225 r35242 7 7 class Tests_Admin_IncludesComment extends WP_UnitTestCase { 8 8 public function test_must_match_date_and_author() { 9 $p1 = self:: $factory->post->create();10 $c1 = self:: $factory->comment->create( array(9 $p1 = self::factory()->post->create(); 10 $c1 = self::factory()->comment->create( array( 11 11 'comment_author' => 1, 12 12 'comment_date' => '2014-05-06 12:00:00', … … 14 14 ) ); 15 15 16 $p2 = self:: $factory->post->create();17 $c2 = self:: $factory->comment->create( array(16 $p2 = self::factory()->post->create(); 17 $c2 = self::factory()->comment->create( array( 18 18 'comment_author' => 2, 19 19 'comment_date' => '2004-01-02 12:00:00', … … 29 29 */ 30 30 public function test_default_value_of_timezone_should_be_blog() { 31 $p = self:: $factory->post->create();32 $c = self:: $factory->comment->create( array(31 $p = self::factory()->post->create(); 32 $c = self::factory()->comment->create( array( 33 33 'comment_author' => 1, 34 34 'comment_post_ID' => $p, … … 44 44 */ 45 45 public function test_should_respect_timezone_blog() { 46 $p = self:: $factory->post->create();47 $c = self:: $factory->comment->create( array(46 $p = self::factory()->post->create(); 47 $c = self::factory()->comment->create( array( 48 48 'comment_author' => 1, 49 49 'comment_post_ID' => $p, … … 59 59 */ 60 60 public function test_should_respect_timezone_gmt() { 61 $p = self:: $factory->post->create();62 $c = self:: $factory->comment->create( array(61 $p = self::factory()->post->create(); 62 $c = self::factory()->comment->create( array( 63 63 'comment_author' => 1, 64 64 'comment_post_ID' => $p, … … 74 74 */ 75 75 public function test_invalid_timezone_should_fall_back_on_blog() { 76 $p = self:: $factory->post->create();77 $c = self:: $factory->comment->create( array(76 $p = self::factory()->post->create(); 77 $c = self::factory()->comment->create( array( 78 78 'comment_author' => 1, 79 79 'comment_post_ID' => $p,
Note: See TracChangeset
for help on using the changeset viewer.