Changeset 12943
- Timestamp:
- 06/01/08 00:31:58 (5 years ago)
- Location:
- events/phpframework/piece_framework/trunk/specs/Phwittr
- Files:
-
- 5 modified
-
AccountSpec.php (modified) (4 diffs)
-
AuthenticationSpec.php (modified) (7 diffs)
-
FollowingSpec.php (modified) (5 diffs)
-
SignupSpec.php (modified) (3 diffs)
-
SpecCommon.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/specs/Phwittr/AccountSpec.php
r12826 r12943 54 54 public function it基本情報が更新できる() 55 55 { 56 $this->_create FooUserRecord();56 $this->_createUserRecord($this->_foo); 57 57 58 58 $mapper = Piece_ORM::getMapper('Users'); … … 76 76 public function itユーザ名が他レコードのものと重複している状態では更新できない() 77 77 { 78 $this->_create FooUserRecord();79 $this->_create BarUserRecord();78 $this->_createUserRecord($this->_foo); 79 $this->_createUserRecord($this->_bar); 80 80 81 81 $mapper = Piece_ORM::getMapper('Users'); … … 96 96 public function itメールアドレスが他レコードのものと重複している状態では更新できない() 97 97 { 98 $this->_create FooUserRecord();99 $this->_create BarUserRecord();98 $this->_createUserRecord($this->_foo); 99 $this->_createUserRecord($this->_bar); 100 100 101 101 $mapper = Piece_ORM::getMapper('Users'); … … 116 116 public function itパスワードは個別で更新() 117 117 { 118 $this->_create FooUserRecord();118 $this->_createUserRecord($this->_foo); 119 119 120 120 $mapper = Piece_ORM::getMapper('Users'); -
events/phpframework/piece_framework/trunk/specs/Phwittr/AuthenticationSpec.php
r12826 r12943 54 54 public function it認証はユーザ名とパスワードで行う() 55 55 { 56 $this->_create FooUserRecord();56 $this->_createUserRecord($this->_foo); 57 57 58 58 $authenticator = new Phwittr_Authentication(); … … 66 66 public function it認証はメールアドレスとパスワードでも行える() 67 67 { 68 $this->_create FooUserRecord();68 $this->_createUserRecord($this->_foo); 69 69 70 70 $authenticator = new Phwittr_Authentication(); … … 78 78 public function it間違った情報では認証は認められない() 79 79 { 80 $this->_create FooUserRecord();80 $this->_createUserRecord($this->_foo); 81 81 82 82 $authenticator = new Phwittr_Authentication(); … … 93 93 { 94 94 $this->_foo->flag = 0; 95 $this->_create FooUserRecord();95 $this->_createUserRecord($this->_foo); 96 96 $this->_foo->flag = 1; 97 97 … … 110 110 public function it認証後にユーザ情報が取得できる() 111 111 { 112 $this->_create FooUserRecord();112 $this->_createUserRecord($this->_foo); 113 113 114 114 $authenticator = new Phwittr_Authentication(); … … 124 124 public function it認証前にユーザ情報を取得しても空() 125 125 { 126 $this->_create FooUserRecord();126 $this->_createUserRecord($this->_foo); 127 127 128 128 $authenticator = new Phwittr_Authentication(); … … 134 134 public function it認証に失敗した後にユーザ情報を取得しても空() 135 135 { 136 $this->_create FooUserRecord();136 $this->_createUserRecord($this->_foo); 137 137 138 138 $authenticator = new Phwittr_Authentication(); -
events/phpframework/piece_framework/trunk/specs/Phwittr/FollowingSpec.php
r12942 r12943 54 54 public function it他のユーザをフレンドに追加できる() 55 55 { 56 $this->_create FooUserRecord();57 $this->_create BarUserRecord();56 $this->_createUserRecord($this->_foo); 57 $this->_createUserRecord($this->_bar); 58 58 59 59 $mapper = Piece_ORM::getMapper('Users'); … … 75 75 public function itフレンドを削除できる() 76 76 { 77 $this->_create FooUserRecord();78 $this->_create BarUserRecord();77 $this->_createUserRecord($this->_foo); 78 $this->_createUserRecord($this->_bar); 79 79 80 80 $mapper = Piece_ORM::getMapper('Users'); … … 98 98 public function it自身のフレンドをリスト化できる() 99 99 { 100 $this->_create FooUserRecord();101 $this->_create BarUserRecord();102 $this->_create BazUserRecord();100 $this->_createUserRecord($this->_foo); 101 $this->_createUserRecord($this->_bar); 102 $this->_createUserRecord($this->_baz); 103 103 104 104 $mapper = Piece_ORM::getMapper('Users'); … … 125 125 public function it自身をフォローしているユーザをリスト化できる() 126 126 { 127 $this->_create FooUserRecord();128 $this->_create BarUserRecord();129 $this->_create BazUserRecord();127 $this->_createUserRecord($this->_foo); 128 $this->_createUserRecord($this->_bar); 129 $this->_createUserRecord($this->_baz); 130 130 131 131 $mapper = Piece_ORM::getMapper('Users'); … … 155 155 public function it自身をフレンドには追加できない() 156 156 { 157 $this->_create FooUserRecord();157 $this->_createUserRecord($this->_foo); 158 158 159 159 $mapper = Piece_ORM::getMapper('Users'); -
events/phpframework/piece_framework/trunk/specs/Phwittr/SignupSpec.php
r12826 r12943 75 75 { 76 76 $this->_foo->flag = 0; 77 $this->_create FooUserRecord();77 $this->_createUserRecord($this->_foo); 78 78 79 79 $signup = new Phwittr_Signup(); … … 101 101 public function itユーザ名が重複していればユーザ名の利用は許可されない() 102 102 { 103 $this->_create FooUserRecord();103 $this->_createUserRecord($this->_foo); 104 104 105 105 $signup = new Phwittr_Signup(); … … 111 111 public function itユーザ名が重複しているにも関わらず仮登録処理を行うと、処理は中断される() 112 112 { 113 $this->_create FooUserRecord();113 $this->_createUserRecord($this->_foo); 114 114 115 115 try { -
events/phpframework/piece_framework/trunk/specs/Phwittr/SpecCommon.php
r12940 r12943 121 121 } 122 122 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 138 123 /**#@-*/ 139 124
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)