Changeset 13635 for events/phpframework/piece_framework
- Timestamp:
- 06/10/08 23:53:31 (5 years ago)
- Location:
- events/phpframework/piece_framework/trunk
- Files:
-
- 2 modified
-
libs/Phwittr/Service.php (modified) (1 diff)
-
specs/Phwittr/SignupSpec.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/libs/Phwittr/Service.php
r13492 r13635 104 104 105 105 $mapper = Piece_ORM::getMapper('Users'); 106 return $mapper->updateToRegistrationUser($criteria); 106 $result = $mapper->updateToRegistrationUser($criteria); 107 if (!$result) { 108 throw new Phwittr_Service_Exception('登録キーが不正'); 109 } 110 111 return true; 107 112 } 108 113 -
events/phpframework/piece_framework/trunk/specs/Phwittr/SignupSpec.php
r13523 r13635 102 102 } 103 103 104 public function itユーザ名が重複しているにも関わらず仮登録処理を行うと、処理は中断され る()104 public function itユーザ名が重複しているにも関わらず仮登録処理を行うと、処理は中断され例外発生() 105 105 { 106 106 $this->_createUserRecord($this->_foo); … … 116 116 117 117 $this->fail(); 118 } 118 119 120 public function it認証キーが間違えていると処理は中断され例外発生() 121 { 122 $this->_foo->flag = 0; 123 $this->_createUserRecord($this->_foo); 124 125 try { 126 Phwittr_Service::register('DummyKeyword'); 127 } catch (Phwittr_Service_Exception $e) { 128 return; 129 } 130 131 $this->fail(); 119 132 } 120 133
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)