Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2015 at 21:57 UTC
Updated:
31 Dec 2015 at 19:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerI'm wondering whether we could provide some form of test coverage for that?
Comment #3
aspilicious commentedJust create a page that prints all the bundles names, change the name and verify it isn't changed on that page.
Or is that to much?
Comment #4
berdirA kernel test should work fine too, just need to change the name of a node type, save and then check getBundleInfo() and make sure it was updated.
Comment #5
aspilicious commentedI'm going to try to add a test to the existing testbase.
Comment #6
aspilicious commentedOr my test is incorrect or the patch doesn't work.
Comment #7
berdirYou're mixing web requests and accessing that information within the test. There's a populated static cache that can't know that you just invalidated things in some form submission.
You need a test that saves a node type through the API or also check this over a request, not mix it.
Comment #8
aspilicious commentedApparently I can't figure out how to get this test working
Loops in simpletest
Comment #9
aspilicious commentedComment #11
swentel commentedLooks good to me
Comment #12
alexpottLooks good to me too. Committed c41548e and pushed to 8.0.x and 8.1.x. Thanks!