Commit 6a243689 authored by generalredneck's avatar generalredneck

Issue #2916478 by generalredneck: wrote a test for long unicode.

parent 30db324b
......@@ -146,6 +146,20 @@ class ViewsNaturalSortBasicTest extends ViewsTestCase {
);
}
public function testStoringLongUnicode() {
$node = $this->drupalCreateNode(array(
'type' => 'views_natural_sort_test_content',
'title' => str_repeat('⌘', 255),
));
$content = db_select('views_natural_sort', 'vns')
->fields('vns', array('content'))
->condition('vns.eid', $node->nid)
->condition('vns.entity_type', 'node')
->execute()
->fetchField();
$this->assertEqual($content, str_repeat('⌘', 255));
}
}
/**
* Tests all the "Days of the week" natural sort functionality.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment