Changeset 57705
- Timestamp:
- 02/24/2024 07:28:52 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesComment.php
r51724 r57705 53 53 public function test_must_match_date_and_author() { 54 54 $this->assertNull( comment_exists( 1, '2004-01-02 12:00:00' ) ); 55 $this->assert Equals(self::$post_id, comment_exists( 1, '2014-05-06 12:00:00' ) );55 $this->assertSame( (string) self::$post_id, comment_exists( 1, '2014-05-06 12:00:00' ) ); 56 56 } 57 57 … … 62 62 */ 63 63 public function test_default_value_of_timezone_should_be_blog() { 64 $this->assert Equals(self::$post_id, comment_exists( 1, '2014-05-06 12:00:00' ) );64 $this->assertSame( (string) self::$post_id, comment_exists( 1, '2014-05-06 12:00:00' ) ); 65 65 } 66 66 … … 71 71 */ 72 72 public function test_should_respect_timezone_blog() { 73 $this->assert Equals(self::$post_id, comment_exists( 1, '2014-05-06 12:00:00', 'blog' ) );73 $this->assertSame( (string) self::$post_id, comment_exists( 1, '2014-05-06 12:00:00', 'blog' ) ); 74 74 } 75 75 … … 80 80 */ 81 81 public function test_should_respect_timezone_gmt() { 82 $this->assert Equals(self::$post_id, comment_exists( 1, '2014-05-06 07:00:00', 'gmt' ) );82 $this->assertSame( (string) self::$post_id, comment_exists( 1, '2014-05-06 07:00:00', 'gmt' ) ); 83 83 } 84 84 … … 89 89 */ 90 90 public function test_invalid_timezone_should_fall_back_on_blog() { 91 $this->assert Equals(self::$post_id, comment_exists( 1, '2014-05-06 12:00:00', 'not_a_valid_value' ) );91 $this->assertSame( (string) self::$post_id, comment_exists( 1, '2014-05-06 12:00:00', 'not_a_valid_value' ) ); 92 92 } 93 93 }
Note: See TracChangeset
for help on using the changeset viewer.