/** * Test getter/setter for id property */ public function testId() { $this->assertEmpty($this->group->getId()); // Change value and assert new $newId = 7; $this->assertEntity($this->group->setId($newId)); $this->assertEquals($newId, $this->group->getId()); }
/** * {@inheritDoc} */ public function setId($id) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', array($id)); return parent::setId($id); }