/** * @param GroupType $groupType * * @Given /^I should be on the ("([^"]*)" group type) page$/ */ public function iShouldBeOnTheGroupTypePage(GroupType $groupType) { $expectedAddress = $this->getPage('GroupType edit')->getUrl(array('id' => $groupType->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(); }
/** * Test getter for id property */ public function testId() { $this->assertEmpty($this->type->getId()); }