/** * @expectedException \TYPO3\Flow\Security\Exception * @expectedExceptionCode 1397745354 * @test */ public function callingSetPartyWithoutIdentifierThrowsException() { $account = new Account(); $account->setParty(new \stdClass()); }
/** * @expectedException \TYPO3\Flow\Security\Exception * @expectedExceptionCode 1397745354 * @test */ public function callingSetPartyWithoutIdentifierThrowsException() { $account = new Account(); $mockParty = $this->getMock('TYPO3\\Party\\Domain\\Model\\AbstractParty'); $account->setParty($mockParty); }
/** * {@inheritDoc} */ public function setParty($party) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setParty', array($party)); return parent::setParty($party); }