skip to Main Content

How to test HashPassword in WordPress?

I want to test (unit testing) HashPassword($password) method from WordPress. How I can check that HashPassword("123123") will return the correct hash for it? For example, I want to do something like: $hashFor123123 = "$P$P)230230832482349823"; $result = HashPassword("123123"); $this->assertSame($hashFor123123, $result); But,…

VIEW QUESTION
Back To Top
Search