Skip to content

Commit e394e2a

Browse files
committed
Tests: Use a strict comparison for user meta query logins.
Use `assertNotSame()` when checking that a `NOT EXISTS` user meta query excludes the fixture author. Developed in: #14855 Props shailu25. See #64895. git-svn-id: https://develop.svn.wordpress.org/trunk@64783 602fd350-edb4-49c9-b593-d223f7449a82
1 parent db4ce09 commit e394e2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/phpunit/tests/meta.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public function test_user_metadata_not_exists() {
264264
$this->assertCount( 1, $u );
265265

266266
// User found is not locally defined author (it's the admin).
267-
$this->assertNotEquals( self::$author->user_login, $u[0]->user_login );
267+
$this->assertNotSame( self::$author->user_login, $u[0]->user_login );
268268

269269
// Test EXISTS and NOT EXISTS together, no users should be found.
270270
$this->assertCount(

0 commit comments

Comments
 (0)