While working on
🐛
Encrypted decimal field value not saved on drupal version 10.2.x+
Active
I noticed an issue with ProcessEntitiesTest. Given the bug outlined in
🐛
Encrypted decimal field value not saved on drupal version 10.2.x+
Active
, one would expect changing encrypted_decimal
to 'type' => 'decimal'
in ProcessEntitiesTest::encryptDecryptEntityDataProvider
would cause ProcessEntitiesTest::testEncryptDecryptEntity
to correctly fail due to ProcessEntities::getUnencryptedPlaceholderValue
returning NULL
for this field instead of 0
. It didn't.
In debugging the code I found that the setValue
call in ProcessEntitiesTest was correctly returning NULL
but MockObject::expects
was allowing 0
to pass.
encrypted_decimal
DataDefinition to 'type' => 'decimal'
in ProcessEntitiesTest::encryptDecryptEntityDataProvider
TBD
TBD
Needs work
3.2
Code