Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Nov 2012 at 17:18 UTC
Updated:
29 Jul 2014 at 21:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ACF commentedPatch attached.
Comment #2
ACF commentedComment #3
gddWe shouldn't actually convert the variable tests. These are specifically to test the variable system and make no sense if converted to the state system. If the variable system does get removed we'll just delete all these tests. I'll remove these from the meta-issue.
All implementations of state()->get() in this patch need to specify a default by doing something along the lines of
state()->get('system_test.module_enable_order') ?: array()Don't worry about this because state()->get() already returns NULL when the key doesn't exist.
Comment #4
ACF commentedRemoved the changes to variable.test and added the defaults.
Comment #6
ACF commentedRemove last link to variable test.
Comment #7
aspilicious commentedLooks great passes tests
Comment #8
webchickCommitted and pushed to 8.x. Thanks!
Comment #9.0
(not verified) commentedadded issue number