Project:Drupal core
Version:7.x-dev
Component:tests
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

This information is from the code coverage report (see http://coverage.cwgordon.com/coverage).

We need to test:

1) drupal_xml_parser_create() with non- utf-8/iso-8859-1/us-ascii encoding.
2) Multibyte language support (including headers).
3) decode_entities().

Comments

#1

Status:active» needs review

Let's start knocking these off. :)

Here's a test case for decode_entities().

AttachmentSizeStatusTest resultOperations
decode_entities_test_01.patch2.75 KBIdleFailed: Failed to install HEAD.View details | Re-test

#2

I'm getting WSOD when I try to run this test, along with 'headers already sent' in watchdog.

common.inc 319:

header('Location: ' . $url, TRUE, $http_response_code);

encoding issue for the new test file maybe? Leaving at needs review in case it's my box.

#3

Status:needs review» needs work

Running from the command line I see the byte order mark printed to output before the test fails. Sort yer editor out gordon.

#4

Gah... sorry :(

#5

Status:needs work» needs review

The problem was an erant unicode bit at the beginning of the file. I removed that, and moved the file to the modules/simpletest/tests directory. All the tests still pass.

AttachmentSizeStatusTest resultOperations
decode_entities_test.patch2.79 KBIdleFailed: Failed to install HEAD.View details | Re-test

#6

I added the list of $excludes to the assertion, which makes debugging a little easier. (this test is helping me work through #212130: decode_entities() doesn't support all entities.

I would also suggest adding a few more entities if / when drupal can decode them:

'—' => '—',
'’' => '’',

Thanks!

AttachmentSizeStatusTest resultOperations
decode_entities_test.patch2.85 KBIdleFailed: Failed to apply patch.View details | Re-test

#7

Status:needs review» needs work

The last submitted patch failed testing.

#8

Status:needs work» needs review

perhaps a victim of #335122: Test clean HEAD after every commit

#9

Status:needs review» needs work

Per http://drupal.org/node/325974 - we no longer have phpdoc for getInfo(). Test itself looks great though.

#10

Status:needs work» needs review

removing phpdoc for getInfo().

AttachmentSizeStatusTest resultOperations
decode_entities_test.patch2.8 KBIdleUnable to apply patch decode_entities_test_1.patchView details | Re-test

#11

Status:needs review» closed (duplicate)

Follow here : #352359: Unit test unicode.inc

nobody click here