Found the following issue while writing the unit tests so updating the code as per the following change record
https://www.drupal.org/node/2444095
Error:
Detailed test results
---------------------
---- Drupal\multilingual_demo\Tests\MultilingualDemoMenuTest ----
Status Group Filename Line Function
--------------------------------------------------------------------------------
Fail Completion MultilingualDemoM 70 Drupal\multilingual_demo\Tests\Mult
The test did not complete due to a fatal error.
Exception Uncaught e ConfigSchemaCheck 98 Drupal\Core\Config\Testing\ConfigSc
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for
user.settings with the following errors: user.settings:admin_role missing
Comment | File | Size | Author |
---|---|---|---|
#7 | multilingual_demo-updating-the-code-as-per-change-record-2650324-7-8.x.patch | 577 bytes | mimran |
#2 | multilingual_demo-updating-the-code-as-per-change-record-2650324-2-8.x.patch | 668 bytes | mimran |
Comments
Comment #2
mimran CreditAttribution: mimran as a volunteer commentedUpdated the code with the patch
Comment #3
mimran CreditAttribution: mimran as a volunteer commentedComment #4
mimran CreditAttribution: mimran as a volunteer commentedComment #5
mimran CreditAttribution: mimran as a volunteer commentedComment #6
Gábor Hojtsyis_admin: true
is already present inmultilingual_demo/config/install/user.role.administrator.yml
, so not sure what does the new code achieve?Comment #7
mimran CreditAttribution: mimran as a volunteer commentedThanks for your reply @Hojtsy , yes you are correct is_admin flag is properly set in the mentioned file but system is looking for a flag admin_role in core/modules/user/config/install/user.settings.yml which is removed as per the following change record https://www.drupal.org/node/2444095 so no point to set that in multilingual_demo_install() updating the patch by removing that i would love to here your thoughts as well on this
Comment #8
Gábor HojtsyHow does this solve your test problem then?
Comment #9
mimran CreditAttribution: mimran as a volunteer commentedtest was failed because of that piece of out dated code after removing that it worked fine
Comment #10
Gábor HojtsyAll right, let's get this in.
Comment #11
mimran CreditAttribution: mimran as a volunteer commented@GáborHojtsy Thanks
Comment #12
Gábor HojtsyComment #14
mimran CreditAttribution: mimran as a volunteer commentedComment #16
Kristen PolUpdating attribution.