setSetting('default_value') => setDefaultValue()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Needs review
FileSize
2.43 KB

Here is a patch. I don't think we need to set explicit defaults for things like an empty description. and title is required, so pointless to have an empty default value.

pwolanin’s picture

Issue tags: +Needs tests

oops, thanks. Should figure out why tests are not catching this

Berdir’s picture

Add form, without default values.

dawehner’s picture

Issue tags: -Needs tests
FileSize
3.88 KB

Added some proper test coverage here.

jibran’s picture

Adding test only patch. To show the fails.

Status: Needs review » Needs work

The last submitted patch, 5: menu-2324825-5-test-only.patch, failed testing.

jibran’s picture

Status: Needs work » Reviewed & tested by the community

Thanks for the patch and tests @Berdir and @dawehner

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

  • webchick committed 2e992d5 on 8.0.x
    Issue #2324825 by jibran, dawehner, Berdir: Fixed MenuLinkContent::...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.