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, **HashPassword** method each time returns a new string with hash. That is why I cant do assert.

How to test it?