Project

General

Profile

Bug(バグ) #962

op_format_last_login_time() のユニットテストが不完全

Added by Shinichi Urabe over 11 years ago. Updated over 11 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Target version:
Start date:
2010-04-17
Due date:
% Done:

100%

3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
Unknown (未調査)

Description

現象

以下のエラーが発生する

# op_format_last_login_time()
not ok 4
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 23)
#            got: '1分以内'
#       expected: 'less than a minute ago'
not ok 5
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 24)
#            got: '1分以内'
#       expected: 'less than a minute ago'
not ok 6
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 25)
#            got: '1分以内'
#       expected: 'less than a minute ago'
not ok 7
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 26)
#            got: '1分以内'
#       expected: 'less than a minute ago'
not ok 8
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 27)
#            got: '1分以内'
#       expected: 'less than a minute ago'
not ok 9
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 28)
#            got: '1分前'
#       expected: '1 minute ago'
not ok 10
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 30)
#            got: '10分前'
#       expected: '10 minutes ago'
not ok 11
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 31)
#            got: '1時間前'
#       expected: 'about 1 hour ago'
not ok 12
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 33)
#            got: '3時間前'
#       expected: 'about 3 hours ago'
not ok 13
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 34)
#            got: '1日前'
#       expected: '1 day ago'
not ok 14
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 36)
#            got: '4日前'
#       expected: '4 days ago'
not ok 15
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 37)
#            got: '1ヶ月前'
#       expected: 'about 1 month ago'
not ok 16
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 38)
#            got: '3ヶ月前'
#       expected: '3 months ago'
not ok 17
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 40)
#            got: '1年前'
#       expected: 'about 1 year ago'
not ok 18
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 41)
#            got: '4年以上前'
#       expected: 'over 4 years ago'
not ok 19
#     Failed test (./test/unit/helper/opUtilHelperTest.php at line 42)
#            got: '2年以上前'
#       expected: 'over 2 years ago'
# op_link_to_member()

原因

デフォルトの言語が日本語であることが考慮されていない

修正内容

言語設定を追加 + 日本語のテストを追加

Associated revisions

Revision 7c1a1c23 (diff)
Added by Shinichi Urabe over 11 years ago

(fixes #962) fixed bug op_format_last_login_time() unit test.

History

#1 Updated by Shinichi Urabe over 11 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 7c1a1c23dcc72a00ba98422375cc5da6c2358fbe で適用されました。

#2 Updated by Kousuke Ebihara over 11 years ago

  • Status changed from Pending Review(レビュー待ち) to Fixed(完了)
  • % Done changed from 50 to 100

Also available in: Atom PDF