drupal_render() doesn't have any specific unit tests yet. We've got three patches which affect it at the moment so makes sense to add some base tests in one issue, then specifics for any changes being made elsewhere.

CommentFileSizeAuthor
#3 drupal_render_tests.patch1.49 KBcatch

Comments

drewish’s picture

subscribe

catch’s picture

We really need these - the #sorted change broke sorting. Made a start on tests in that issue #364407: drupal_render() sorting is broken.

catch’s picture

Status: Active » Needs review
StatusFileSize
new1.49 KB

Here's a patch which fleshes out the sorting tests now that it's not broken any longer. Since there's quite a lot of tests to add, I suggest we add a function for each bit we need to test, get those committed, then continue with the next thing - unless someone wants to post a full test suite in one go (I don't).

catch’s picture

Status: Needs review » Active

Those tests got committed with #370846: More drupal_render() optimisation, so back to active.

catch’s picture

Status: Active » Closed (duplicate)

We have more drupal_render() tests now, so marking duplicate.