Changeset 12943

Show
Ignore:
Timestamp:
06/01/08 00:31:58 (5 years ago)
Author:
kumatch
Message:

- Changed spec platform.

Location:
events/phpframework/piece_framework/trunk/specs/Phwittr
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/piece_framework/trunk/specs/Phwittr/AccountSpec.php

    r12826 r12943  
    5454    public function it基本情報が更新できる() 
    5555    { 
    56         $this->_createFooUserRecord(); 
     56        $this->_createUserRecord($this->_foo); 
    5757         
    5858        $mapper = Piece_ORM::getMapper('Users'); 
     
    7676    public function itユーザ名が他レコードのものと重複している状態では更新できない() 
    7777    { 
    78         $this->_createFooUserRecord(); 
    79         $this->_createBarUserRecord(); 
     78        $this->_createUserRecord($this->_foo); 
     79        $this->_createUserRecord($this->_bar); 
    8080         
    8181        $mapper = Piece_ORM::getMapper('Users'); 
     
    9696    public function itメールアドレスが他レコードのものと重複している状態では更新できない() 
    9797    { 
    98         $this->_createFooUserRecord(); 
    99         $this->_createBarUserRecord(); 
     98        $this->_createUserRecord($this->_foo); 
     99        $this->_createUserRecord($this->_bar); 
    100100         
    101101        $mapper = Piece_ORM::getMapper('Users'); 
     
    116116    public function itパスワードは個別で更新() 
    117117    { 
    118         $this->_createFooUserRecord(); 
     118        $this->_createUserRecord($this->_foo); 
    119119         
    120120        $mapper = Piece_ORM::getMapper('Users'); 
  • events/phpframework/piece_framework/trunk/specs/Phwittr/AuthenticationSpec.php

    r12826 r12943  
    5454    public function it認証はユーザ名とパスワードで行う() 
    5555    { 
    56         $this->_createFooUserRecord(); 
     56        $this->_createUserRecord($this->_foo); 
    5757 
    5858        $authenticator = new Phwittr_Authentication(); 
     
    6666    public function it認証はメールアドレスとパスワードでも行える() 
    6767    { 
    68         $this->_createFooUserRecord(); 
     68        $this->_createUserRecord($this->_foo); 
    6969 
    7070        $authenticator = new Phwittr_Authentication(); 
     
    7878    public function it間違った情報では認証は認められない() 
    7979    { 
    80         $this->_createFooUserRecord(); 
     80        $this->_createUserRecord($this->_foo); 
    8181 
    8282        $authenticator = new Phwittr_Authentication(); 
     
    9393    { 
    9494        $this->_foo->flag = 0; 
    95         $this->_createFooUserRecord(); 
     95        $this->_createUserRecord($this->_foo); 
    9696        $this->_foo->flag = 1; 
    9797 
     
    110110    public function it認証後にユーザ情報が取得できる() 
    111111    { 
    112         $this->_createFooUserRecord(); 
     112        $this->_createUserRecord($this->_foo); 
    113113 
    114114        $authenticator = new Phwittr_Authentication(); 
     
    124124    public function it認証前にユーザ情報を取得しても空() 
    125125    { 
    126         $this->_createFooUserRecord(); 
     126        $this->_createUserRecord($this->_foo); 
    127127 
    128128        $authenticator = new Phwittr_Authentication(); 
     
    134134    public function it認証に失敗した後にユーザ情報を取得しても空() 
    135135    { 
    136         $this->_createFooUserRecord(); 
     136        $this->_createUserRecord($this->_foo); 
    137137 
    138138        $authenticator = new Phwittr_Authentication(); 
  • events/phpframework/piece_framework/trunk/specs/Phwittr/FollowingSpec.php

    r12942 r12943  
    5454    public function it他のユーザをフレンドに追加できる() 
    5555    { 
    56         $this->_createFooUserRecord(); 
    57         $this->_createBarUserRecord(); 
     56        $this->_createUserRecord($this->_foo); 
     57        $this->_createUserRecord($this->_bar); 
    5858 
    5959        $mapper = Piece_ORM::getMapper('Users'); 
     
    7575    public function itフレンドを削除できる() 
    7676    { 
    77         $this->_createFooUserRecord(); 
    78         $this->_createBarUserRecord(); 
     77        $this->_createUserRecord($this->_foo); 
     78        $this->_createUserRecord($this->_bar); 
    7979 
    8080        $mapper = Piece_ORM::getMapper('Users'); 
     
    9898    public function it自身のフレンドをリスト化できる() 
    9999    { 
    100         $this->_createFooUserRecord(); 
    101         $this->_createBarUserRecord(); 
    102         $this->_createBazUserRecord(); 
     100        $this->_createUserRecord($this->_foo); 
     101        $this->_createUserRecord($this->_bar); 
     102        $this->_createUserRecord($this->_baz); 
    103103 
    104104        $mapper = Piece_ORM::getMapper('Users'); 
     
    125125    public function it自身をフォローしているユーザをリスト化できる() 
    126126    { 
    127         $this->_createFooUserRecord(); 
    128         $this->_createBarUserRecord(); 
    129         $this->_createBazUserRecord(); 
     127        $this->_createUserRecord($this->_foo); 
     128        $this->_createUserRecord($this->_bar); 
     129        $this->_createUserRecord($this->_baz); 
    130130 
    131131        $mapper = Piece_ORM::getMapper('Users'); 
     
    155155    public function it自身をフレンドには追加できない() 
    156156    { 
    157         $this->_createFooUserRecord(); 
     157        $this->_createUserRecord($this->_foo); 
    158158 
    159159        $mapper = Piece_ORM::getMapper('Users'); 
  • events/phpframework/piece_framework/trunk/specs/Phwittr/SignupSpec.php

    r12826 r12943  
    7575    { 
    7676        $this->_foo->flag = 0; 
    77         $this->_createFooUserRecord(); 
     77        $this->_createUserRecord($this->_foo); 
    7878 
    7979        $signup = new Phwittr_Signup(); 
     
    101101    public function itユーザ名が重複していればユーザ名の利用は許可されない() 
    102102    { 
    103         $this->_createFooUserRecord(); 
     103        $this->_createUserRecord($this->_foo); 
    104104 
    105105        $signup = new Phwittr_Signup(); 
     
    111111    public function itユーザ名が重複しているにも関わらず仮登録処理を行うと、処理は中断される() 
    112112    { 
    113         $this->_createFooUserRecord(); 
     113        $this->_createUserRecord($this->_foo); 
    114114 
    115115        try { 
  • events/phpframework/piece_framework/trunk/specs/Phwittr/SpecCommon.php

    r12940 r12943  
    121121    } 
    122122 
    123     protected function _createFooUserRecord() 
    124     { 
    125         $this->_createUserRecord($this->_foo); 
    126     } 
    127  
    128     protected function _createBarUserRecord() 
    129     { 
    130         $this->_createUserRecord($this->_bar); 
    131     } 
    132  
    133     protected function _createBazUserRecord() 
    134     { 
    135         $this->_createUserRecord($this->_baz); 
    136     } 
    137  
    138123    /**#@-*/ 
    139124