/**
  * 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());
 }
 /**
  * @param AttributeGroup $group
  *
  * @Given /^I should be on the ("([^"]*)" attribute group) page$/
  */
 public function iShouldBeOnTheAttributeGroupPage(AttributeGroup $group)
 {
     $expectedAddress = $this->getPage('AttributeGroup edit')->getUrl(array('id' => $group->getId()));
     $this->assertAddress($expectedAddress);
 }
 /**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
     return parent::getId();
 }
 /**
  * @param AttributeGroup $group
  */
 protected function initializeGroup(AttributeGroup $group)
 {
     $this->view[$group->getId()] = array('label' => $group->getLabel(), 'attributes' => array());
 }