/** * Test getter for max attribute sort order */ public function testGetMaxAttributeSortOrder() { $max = 5; for ($i = 1; $i <= $max; $i++) { $attribute = new Attribute(); $attribute->setSortOrder($i); $this->group->addAttribute($attribute); } $this->assertEquals($this->group->getMaxAttributeSortOrder(), $max); }
/** * {@inheritDoc} */ public function getMaxAttributeSortOrder() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMaxAttributeSortOrder', array()); return parent::getMaxAttributeSortOrder(); }