public function testSaveWithRankNull() { $Members = $this->app['eccube.repository.member']->findAll(); foreach ($Members as $Member) { $this->app['orm.em']->remove($Member); } $this->app['orm.em']->flush(); $Member = new Member(); $Member->setLoginId('member-100')->setPassword('password')->setSalt($this->app['eccube.repository.member']->createSalt(5))->setRank(100)->setDelFlg(Constant::DISABLED); $Member->setPassword($this->app['eccube.repository.member']->encryptPassword($Member)); $result = $this->app['eccube.repository.member']->save($Member); $this->assertTrue($result); $this->expected = 1; $this->actual = $Member->getRank(); $this->verify(); }
/** * {@inheritDoc} */ public function setLoginId($loginId) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLoginId', array($loginId)); return parent::setLoginId($loginId); }