When toggling the blueprint visibility in the CP hidden it was getting stuck on 'hidden', and could not be reverted from that state. This is due to how the contents are being merged in and out of the database.
This change does a hard check on hidden before saving the model and removes it from the data being stored when not required.
I also took the opportunity to begin test coverage for blueprints.
When toggling the blueprint visibility in the CP hidden it was getting stuck on 'hidden', and could not be reverted from that state. This is due to how the
contents
are being merged in and out of the database.This change does a hard check on hidden before saving the model and removes it from the data being stored when not required.
I also took the opportunity to begin test coverage for blueprints.
Fixes: https://github.com/statamic/eloquent-driver/issues/159