1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-12 13:44:04 +00:00

Change method to non-static in test

This commit is contained in:
lukinovec 2023-10-17 09:46:34 +02:00
parent 43f505aa37
commit 8b6db9ac2a

View file

@ -127,7 +127,7 @@ class VirtualColumnTest extends TestCase
foreach($encryptedAttributes as $key => $expectedValue) { foreach($encryptedAttributes as $key => $expectedValue) {
$savedValue = $model->getAttributes()[$key]; // Encrypted $savedValue = $model->getAttributes()[$key]; // Encrypted
$this->assertTrue(MyModel::valueEncrypted($savedValue)); $this->assertTrue($model->valueEncrypted($savedValue));
$this->assertNotEquals($expectedValue, $savedValue); $this->assertNotEquals($expectedValue, $savedValue);
$retrievedValue = $model->$key; // Decrypted $retrievedValue = $model->$key; // Decrypted