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

Changeset 12244


Ignore:
Timestamp:
Jul 13, 2009, 5:35:55 PM (10 years ago)
Author:
fukamachi
Message:

changed the functional test of opCommunityTopicPlugin to adapt Doctrine

Location:
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/test/bootstrap/database.php

    r10388 r12244  
    1111new sfDatabaseManager(ProjectConfiguration::getApplicationConfiguration('pc_frontend', 'test', true));
    1212
    13 // execute propel:insert-sql task
    14 $task = new sfPropelInsertSqlTask(new sfEventDispatcher(), new sfAnsiColorFormatter());
    15 $task->run(array(), array('no-confirmation'));
    16 
    17 $loader = new sfPropelData();
    18 $loader->loadData(dirname(__FILE__).'/../fixtures');
     13Doctrine::loadData(dirname(__FILE__).'/../fixtures');
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/test/fixtures/test_data.yml

    r10415 r12244  
    2121    name: "pc_address"
    2222    value: "sns@example.com"
    23     member_id: member_1
     23    Member: member_1
    2424  member_address_2:
    2525    name: "pc_address"
    2626    value: "tanaka@example.com"
    27     member_id: member_2
     27    Member: member_2
    2828  member_address_3:
    2929    name: "pc_address"
    3030    value: "sasaki@example.com"
    31     member_id: member_3
     31    Member: member_3
    3232  member_address_4:
    3333    name: "pc_address"
    3434    value: "yamada@example.com"
    35     member_id: member_4
     35    Member: member_4
    3636  member_address_5:
    3737    name: "pc_address"
    3838    value: "tom@example.com"
    39     member_id: member_5
     39    Member: member_5
    4040  member_password_1:
    4141    name: "password"
    4242    value: "<?php echo md5('password') ?>"
    43     member_id: member_1
     43    Member: member_1
    4444  member_password_2:
    4545    name: "password"
    4646    value: "<?php echo md5('password') ?>"
    47     member_id: member_2
     47    Member: member_2
    4848  member_password_3:
    4949    name: "password"
    5050    value: "<?php echo md5('password') ?>"
    51     member_id: member_3
     51    Member: member_3
    5252  member_password_4:
    5353    name: "password"
    5454    value: "<?php echo md5('password') ?>"
    55     member_id: member_4
     55    Member: member_4
    5656  member_password_5:
    5757    name: "password"
    5858    value: "<?php echo md5('password') ?>"
    59     member_id: member_5
     59    Member: member_5
    6060
    6161Community:
     
    7171CommunityConfig:
    7272  community_a_public_flag:
    73     community_id: community_a
     73    Community: community_a
    7474    name: "public_flag"
    7575    value: "auth_commu_member"
    7676  community_a_topic_authority:
    77     community_id: community_a
     77    Community: community_a
    7878    name: "topic_authority"
    7979    value: "admin_only"
    8080  community_i_public_flag:
    81     community_id: community_i
     81    Community: community_i
    8282    name: "public_flag"
    8383    value: "public"
    8484  community_i_topic_authority:
    85     community_id: community_i
     85    Community: community_i
    8686    name: "topic_authority"
    8787    value: "admin_only"
    8888  community_u_public_flag:
    89     community_id: community_u
     89    Community: community_u
    9090    name: "public_flag"
    9191    value: "auth_commu_member"
    9292  community_u_topic_authority:
    93     community_id: community_u
     93    Community: community_u
    9494    name: "topic_authority"
    9595    value: "public"
    9696  community_e_public_flag:
    97     community_id: community_e
     97    Community: community_e
    9898    name: "public_flag"
    9999    value: "public"
    100100  community_e_topic_authority:
    101     community_id: community_e
     101    Community: community_e
    102102    name: "topic_authority"
    103103    value: "public"
     
    105105CommunityMember:
    106106  community_member_a_1:
    107     community_id: community_a
    108     member_id: member_1
     107    Community: community_a
     108    Member: member_1
    109109    position: "admin"
    110110  community_member_i_1:
    111     community_id: community_i
    112     member_id: member_1
     111    Community: community_i
     112    Member: member_1
    113113    position: "admin"
    114114  community_member_u_1:
    115     community_id: community_u
    116     member_id: member_1
     115    Community: community_u
     116    Member: member_1
    117117    position: "admin"
    118118  community_member_e_1:
    119     community_id: community_e
    120     member_id: member_1
     119    Community: community_e
     120    Member: member_1
    121121    position: "admin"
    122122  community_member_a_2:
    123     community_id: community_a
    124     member_id: member_2
     123    Community: community_a
     124    Member: member_2
    125125  community_member_i_2:
    126     community_id: community_i
    127     member_id: member_2
     126    Community: community_i
     127    Member: member_2
    128128  community_member_u_2:
    129     community_id: community_u
    130     member_id: member_2
     129    Community: community_u
     130    Member: member_2
    131131  community_member_e_2:
    132     community_id: community_e
    133     member_id: member_2
     132    Community: community_e
     133    Member: member_2
    134134  community_member_a_3:
    135     community_id: community_a
    136     member_id: member_3
     135    Community: community_a
     136    Member: member_3
    137137  community_member_i_3:
    138     community_id: community_i
    139     member_id: member_3
     138    Community: community_i
     139    Member: member_3
    140140  community_member_u_3:
    141     community_id: community_u
    142     member_id: member_3
     141    Community: community_u
     142    Member: member_3
    143143  community_member_e_3:
    144     community_id: community_e
    145     member_id: member_3
     144    Community: community_e
     145    Member: member_3
    146146  community_member_a_5:
    147     community_id: community_a
    148     member_id: member_5
     147    Community: community_a
     148    Member: member_5
    149149  community_member_i_5:
    150     community_id: community_i
    151     member_id: member_5
     150    Community: community_i
     151    Member: member_5
    152152  community_member_u_5:
    153     community_id: community_u
    154     member_id: member_5
     153    Community: community_u
     154    Member: member_5
    155155  community_member_e_5:
    156     community_id: community_e
    157     member_id: member_5
     156    Community: community_e
     157    Member: member_5
    158158
    159159CommunityTopic:
     
    161161    name: "_aトピ主"
    162162    body: "こんにちは"
    163     community_id: community_a
    164     member_id: member_2
     163    Community: community_a
     164    Member: member_2
    165165  community_topic_i_2:
    166166    name: "_iトピ主"
    167167    body: "こんにちは"
    168     community_id: community_i
    169     member_id: member_2
     168    Community: community_i
     169    Member: member_2
    170170  community_topic_u_2:
    171171    name: "_uトピ主"
    172172    body: "こんにちは"
    173     community_id: community_u
    174     member_id: member_2
     173    Community: community_u
     174    Member: member_2
    175175  community_topic_e_2:
    176176    name: "_eトピ主"
    177177    body: "こんにちは"
    178     community_id: community_e
    179     member_id: member_2
     178    Community: community_e
     179    Member: member_2
    180180  community_topic_a_4:
    181181    name: "_a外"
    182182    body: "こんにちは"
    183     community_id: community_a
    184     member_id: member_4
     183    Community: community_a
     184    Member: member_4
    185185  community_topic_i_4:
    186186    name: "_i外"
    187187    body: "こんにちは"
    188     community_id: community_i
    189     member_id: member_4
     188    Community: community_i
     189    Member: member_4
    190190  community_topic_u_4:
    191191    name: "_u外"
    192192    body: "こんにちは"
    193     community_id: community_u
    194     member_id: member_4
     193    Community: community_u
     194    Member: member_4
    195195  community_topic_e_4:
    196196    name: "_e外"
    197197    body: "こんにちは"
    198     community_id: community_e
    199     member_id: member_4
     198    Community: community_e
     199    Member: member_4
    200200
    201201CommunityTopicComment:
    202202  community_topic_comment_a_2:
    203203    body: "こんにちは"
    204     community_topic_id: community_topic_a_2
    205     member_id: member_5
     204    CommunityTopic: community_topic_a_2
     205    Member: member_5
    206206  community_topic_comment_i_2:
    207207    body: "こんにちは"
    208     community_topic_id: community_topic_i_2
    209     member_id: member_5
     208    CommunityTopic: community_topic_i_2
     209    Member: member_5
    210210  community_topic_comment_u_2:
    211211    body: "こんにちは"
    212     community_topic_id: community_topic_u_2
    213     member_id: member_5
     212    CommunityTopic: community_topic_u_2
     213    Member: member_5
    214214  community_topic_comment_e_2:
    215215    body: "こんにちは"
    216     community_topic_id: community_topic_e_2
    217     member_id: member_5
     216    CommunityTopic: community_topic_e_2
     217    Member: member_5
    218218  community_topic_comment_a_4:
    219219    body: "こんにちは"
    220     community_topic_id: community_topic_a_4
    221     member_id: member_5
     220    CommunityTopic: community_topic_a_4
     221    Member: member_5
    222222  community_topic_comment_i_4:
    223223    body: "こんにちは"
    224     community_topic_id: community_topic_i_4
    225     member_id: member_5
     224    CommunityTopic: community_topic_i_4
     225    Member: member_5
    226226  community_topic_comment_u_4:
    227227    body: "こんにちは"
    228     community_topic_id: community_topic_u_4
    229     member_id: member_5
     228    CommunityTopic: community_topic_u_4
     229    Member: member_5
    230230  community_topic_comment_e_4:
    231231    body: "こんにちは"
    232     community_topic_id: community_topic_e_4
    233     member_id: member_5
     232    CommunityTopic: community_topic_e_4
     233    Member: member_5
     234
     235CommunityEvent:
     236  community_event_a_2:
     237    Community: community_a
     238    Member: member_2
     239    name: '_aイベ主'
     240    body: 'こんにちは'
     241    open_date: '2009-06-10'
     242    open_date_comment: 'あかさたな'
     243    area: '福岡県'
     244
     245  community_event_i_2:
     246    Community: community_i
     247    Member: member_2
     248    name: '_iイベ主'
     249    body: 'こんにちは'
     250    open_date: '2009-06-11'
     251    open_date_comment: 'いきしちに'
     252    area: '佐賀県'
     253
     254CommunityEventComment:
     255  community_event_comment_a_2:
     256    CommunityEvent: community_event_a_2
     257    Member: member_5
     258    body: 'こんにちは'
     259  community_event_comment_i_2:
     260    CommunityEvent: community_event_i_2
     261    Member: member_5
     262    body: 'こんにちは'
Note: See TracChangeset for help on using the changeset viewer.