Skip to content

Commit 2e47480

Browse files
committed
Tests: Use strict comparisons for POMO translation keys.
Use `assertNotSame()` for differing `Translation_Entry::key()` values. Preserve the checks that context and singular text distinguish keys, while plural text does not. Developed in: #14729 Props shailu25. See #64895. git-svn-id: https://develop.svn.wordpress.org/trunk@64780 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5331b73 commit 2e47480

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/phpunit/tests/pomo/translationEntry.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function test_key() {
4545
)
4646
);
4747
$this->assertSame( $entry_baba->key(), $entry_baba_plural->key() );
48-
$this->assertNotEquals( $entry_baba->key(), $entry_baba_ctxt->key() );
49-
$this->assertNotEquals( $entry_baba_plural->key(), $entry_baba_ctxt->key() );
50-
$this->assertNotEquals( $entry_baba->key(), $entry_dyado->key() );
48+
$this->assertNotSame( $entry_baba->key(), $entry_baba_ctxt->key() );
49+
$this->assertNotSame( $entry_baba_plural->key(), $entry_baba_ctxt->key() );
50+
$this->assertNotSame( $entry_baba->key(), $entry_dyado->key() );
5151
}
5252
}

0 commit comments

Comments
 (0)