ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10608


Ignore:
Timestamp:
Feb 3, 2009, 5:19:18 PM (10 years ago)
Author:
ebihara
Message:

#3546:added a functional test for community list gadget

Location:
OpenPNE3/trunk/test
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/test/bootstrap/functional.php

    r10580 r10608  
    2424
    2525$loader = new sfPropelData();
    26 $loader->loadData(sfConfig::get('sf_data_dir').'/fixtures');
     26$loader->setDeleteCurrentData(true);
     27$loader->loadData(dirname(__FILE__).'/../fixtures');
    2728
    2829// remove all cache
  • OpenPNE3/trunk/test/fixtures/test_data.yml

    r10277 r10608  
    9494    username: "admin"
    9595    password: "password"
     96
    9697Navigation:
    9798  secure_global_navigation_home:
    9899    type: "secure_global"
    99100    uri: "@homepage"
    100 
    101   secure_global_navigation_member_list:
    102     type: "secure_global"
    103     uri: "member/list"
    104 
    105   secure_global_navigation_community_list:
    106     type: "secure_global"
    107     uri: "community/list"
     101    sort_order: 0
     102
     103  secure_global_navigation_member_search:
     104    type: "secure_global"
     105    uri: "member/search"
     106    sort_order: 10
     107
     108  secure_global_navigation_community_search:
     109    type: "secure_global"
     110    uri: "community/search"
     111    sort_order: 20
    108112
    109113  secure_global_navigation_config:
    110114    type: "secure_global"
    111115    uri: "member/config"
     116    sort_order: 30
    112117
    113118  secure_global_navigation_invite:
    114119    type: "secure_global"
    115120    uri: "member/invite"
     121    sort_order: 40
    116122
    117123  secure_global_navigation_logout:
    118124    type: "secure_global"
    119125    uri: "member/logout"
     126    sort_order: 50
    120127
    121128  default_navigation_home:
    122129    type: "default"
    123130    uri: "@homepage"
     131    sort_order: 0
    124132
    125133  default_navigation_friend_list:
    126134    type: "default"
    127135    uri: "friend/list"
     136    sort_order: 10
    128137
    129138  default_navigation_profile_confirm:
    130139    type: "default"
    131140    uri: "member/profile"
     141    sort_order: 20
    132142
    133143  default_navigation_profile_edit:
    134144    type: "default"
    135145    uri: "member/editProfile"
     146    sort_order: 30
    136147
    137148  friend_navigation_home:
    138149    type: "friend"
    139150    uri: "member/profile"
     151    sort_order: 10
    140152
    141153  friend_navigation_friend_list:
    142154    type: "friend"
    143155    uri: "friend/list"
    144 
    145   friend_navigation_link:
    146     type: "friend"
    147     uri: "friend/link"
    148 
    149   friend_navigation_unlink:
    150     type: "friend"
    151     uri: "friend/unlink"
     156    sort_order: 20
    152157
    153158  community_navigation_home:
    154159    type: "community"
    155160    uri: "community/home"
     161    sort_order: 0
    156162
    157163  community_navigation_join:
    158164    type: "community"
    159165    uri: "community/join"
     166    sort_order: 10
    160167
    161168  community_navigation_quit:
    162169    type: "community"
    163170    uri: "community/quit"
     171    sort_order: 20
    164172
    165173NavigationI18n:
     
    169177    culture: "ja_JP"
    170178
    171   secure_global_navigation_member_list_i18n:
    172     id: secure_global_navigation_member_list
    173     caption: "メンバー一覧"
    174     culture: "ja_JP"
    175 
    176   secure_global_navigation_community_list_i18n:
    177     id: secure_global_navigation_community_list
    178     caption: "コミュニティ一覧"
     179  secure_global_navigation_member_search_i18n:
     180    id: secure_global_navigation_member_search
     181    caption: "メンバー検索"
     182    culture: "ja_JP"
     183
     184  secure_global_navigation_community_search_i18n:
     185    id: secure_global_navigation_community_search
     186    caption: "コミュニティ検索"
    179187    culture: "ja_JP"
    180188
     
    224232    culture: "ja_JP"
    225233
    226   friend_navigation_link_i18n:
    227     id: friend_navigation_link
    228     caption: "マイフレンドになる"
    229     culture: "ja_JP"
    230 
    231   friend_navigation_unlink_i18n:
    232     id: friend_navigation_unlink
    233     caption: "マイフレンドをやめる"
    234     culture: "ja_JP"
    235 
    236234  community_navigation_home_i18n:
    237235    id: community_navigation_home
     
    248246    caption: "コミュニティを退会"
    249247    culture: "ja_JP"
     248
     249  secure_global_navigation_home_i18n_en:
     250    id: secure_global_navigation_home
     251    caption: "My Home"
     252    culture: "en"
     253
     254  secure_global_navigation_member_search_i18n_en:
     255    id: secure_global_navigation_member_search
     256    caption: "Search Members"
     257    culture: "en"
     258
     259  secure_global_navigation_community_search_i18n_en:
     260    id: secure_global_navigation_community_search
     261    caption: "Search Communities"
     262    culture: "en"
     263
     264  secure_global_navigation_config_i18n_en:
     265    id: secure_global_navigation_config
     266    caption: "Settings"
     267    culture: "en"
     268
     269  secure_global_navigation_invite_i18n_en:
     270    id: secure_global_navigation_invite
     271    caption: "Invite"
     272    culture: "en"
     273
     274  secure_global_navigation_logout_i18n_en:
     275    id: secure_global_navigation_logout
     276    caption: "Logout"
     277    culture: "en"
     278
     279  default_navigation_home_i18n_en:
     280    id: default_navigation_home
     281    caption: "Home"
     282    culture: "en"
     283
     284  default_navigation_friend_list_i18n_en:
     285    id: default_navigation_friend_list
     286    caption: "My Friends"
     287    culture: "en"
     288
     289  default_navigation_profile_confirm_i18n_en:
     290    id: default_navigation_profile_confirm
     291    caption: "Profile"
     292    culture: "en"
     293
     294  default_navigation_profile_edit_i18n_en:
     295    id: default_navigation_profile_edit
     296    caption: "Edit Profile"
     297    culture: "en"
     298
     299  friend_navigation_home_i18n_en:
     300    id: friend_navigation_home
     301    caption: "Home"
     302    culture: "en"
     303
     304  friend_navigation_friend_list_i18n_en:
     305    id: friend_navigation_friend_list
     306    caption: "Friends"
     307    culture: "en"
     308
     309  community_navigation_home_i18n_en:
     310    id: community_navigation_home
     311    caption: "Community Top"
     312    culture: "en"
     313
     314  community_navigation_join_i18n_en:
     315    id: community_navigation_join
     316    caption: "Join Community"
     317    culture: "en"
     318
     319  community_navigation_quit_i18n_en:
     320    id: community_navigation_quit
     321    caption: "Leave Community"
     322    culture: "en"
    250323
    251324MemberRelationship:
     
    276349    position: "admin"
    277350
    278 SnsConfig:
    279   first_sns_config:
    280     name: "SNS_NAME"
    281     value: "MySNS"
     351Gadget:
     352  gadget_search:
     353    type: "top"
     354    name: "searchBox"
     355    sort_order: 10
     356
     357  gadget_information:
     358    type: "top"
     359    name: "informationBox"
     360    sort_order: 20
     361
     362  gadget_member_image:
     363    type: "sideMenu"
     364    name: "memberImageBox"
     365    sort_order: 10
     366
     367  gadget_friend_table:
     368    type: "sideMenu"
     369    name: "friendListBox"
     370    sort_order: 20
     371
     372  gadget_community_table:
     373    type: "sideMenu"
     374    name: "communityJoinListBox"
     375    sort_order: 30
     376
     377  gadget_language_select_box:
     378    type: "sideBannerContents"
     379    name: "languageSelecterBox"
     380    sort_order: 10
     381
     382  mobile_gadget_information:
     383    type: "mobileTop"
     384    name: "informationBox"
     385    sort_order: 10
Note: See TracChangeset for help on using the changeset viewer.