Definition at line 10 of file ModelTest.php.
◆ setUp()
Definition at line 17 of file ModelTest.php.
20 \
Magento\Framework\Encryption\Encryptor::class
static getObjectManager()
◆ testEncryptDecrypt()
◆ testEncryptDecrypt2()
Definition at line 32 of file ModelTest.php.
36 $initial = md5(uniqid());
38 $this->assertNotEquals($initial, $encrypted);
39 $this->assertEquals($initial,
$encryptor->decrypt($encrypted));
◆ testGetValidateHash()
Definition at line 57 of file ModelTest.php.
60 $hash = $this->_model->getHash($password,
true);
62 $this->assertTrue(is_string($hash));
63 $this->assertTrue($this->_model->validateHash($password, $hash));
◆ testValidateKey()
Definition at line 42 of file ModelTest.php.
44 $validKey = md5(uniqid());
45 $this->_model->validateKey($validKey);
◆ testValidateKeyInvalid()
testValidateKeyInvalid |
( |
| ) |
|
@expectedException \Exception
Definition at line 51 of file ModelTest.php.
53 $invalidKey =
'---- ';
54 $this->_model->validateKey($invalidKey);
◆ $_model
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Framework/Encryption/ModelTest.php