public function testGetSubNavigation() { $collection = new Collection('t1', '/baseurl'); $items = array(); $items[] = new Item('text1', 'text1/'); $items[] = new Item('text2', 'text2/'); $collection->addItems($items); $this->_object->setSubNavigationItems($collection); $this->assertEquals('/baseurl/text1//baseurl/text2/', $this->_object->getSubNavigation()); }