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

Changeset 12926


Ignore:
Timestamp:
Sep 19, 2009, 6:39:59 PM (13 years ago)
Author:
fukamachi
Message:

commit again (r12925)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/test/unit/model/MemberProfileTest.php

    r9484 r12926  
    99
    1010$t->diag('MemberProfile::__toString()');
    11 $memberProfile = MemberProfilePeer::retrieveByPK(1);
    12 $option = ProfileOptionPeer::retrieveByPk($memberProfile->getProfileOptionId());
    13 $t->cmp_ok((string)$memberProfile, '===', (string)$option->getValue(), '__toString() returns an option');
    14 $memberProfile = MemberProfilePeer::retrieveByPK(2);
     11$memberProfile = Doctrine::getTable('MemberProfile')->find(1);
     12$profileOption = Doctrine::getTable('ProfileOption')->find($memberProfile->getProfileOptionId());
     13$t->cmp_ok((string)$memberProfile, '===', (string)$profileOption->getValue(), '__toString() returns an option');
     14$memberProfile = Doctrine::getTable('MemberProfile')->find(2);
    1515$t->cmp_ok((string)$memberProfile, '===', (string)$memberProfile->getValue(), '__toString() returns a value');
    1616
     
    1818
    1919$t->diag('MemberProfile::getValue()');
    20 $memberProfile = MemberProfilePeer::retrieveByPK(1);
    21 $t->cmp_ok($memberProfile->getValue(), '===', 1, 'getValue() returns an option');
    22 $memberProfile = MemberProfilePeer::retrieveByPK(2);
    23 $t->cmp_ok($memberProfile->getValue(), '===', 'よろしくお願いします。', 'getValue() returns a value');
     20$memberProfile = Doctrine::getTable('MemberProfile')->find(1);
     21$t->cmp_ok($memberProfile->getValue(), '===', '1', 'getValue() returns an option');
     22$memberProfile = Doctrine::getTable('MemberProfile')->find(2);
     23$t->cmp_ok($memberProfile->getValue(), '===', '1988-04-23', 'getValue() returns a value');
    2424
    2525//------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.