Patch #32054 » test_for_emoji_support-v2.patch
| test/test_helper.rb | ||
|---|---|---|
|
return true
|
||
|
end
|
||
|
def is_mysql_utf8mb4
|
||
|
self.class.is_mysql_utf8mb4
|
||
|
end
|
||
|
def repository_path_hash(arr)
|
||
|
hs = {}
|
||
|
hs[:path] = arr.join("/")
|
||
| test/unit/issue_test.rb | ||
|---|---|---|
|
assert_equal issues.collect(&:id).sort, Issue.all.select {|issue| issue.visible?(user)}.collect(&:id).sort
|
||
|
end
|
||
|
def test_create_with_emoji_character
|
||
|
skip if Redmine::Database.mysql? && !is_mysql_utf8mb4
|
||
|
set_language_if_valid 'en'
|
||
|
issue = Issue.new(:project_id => 1, :tracker_id => 1,
|
||
|
:author_id => 1, :subject => 'Group assignment',
|
||
|
:description => 'Hello 😀')
|
||
|
assert issue.save
|
||
|
assert_equal 'Hello 😀', issue.description
|
||
|
end
|
||
|
def test_visible_scope_for_anonymous
|
||
|
# Anonymous user should see issues of public projects only
|
||
|
issues = Issue.visible(User.anonymous).to_a
|
||
- « Previous
- 1
- 2
- Next »