public function getWidgets()
 {
     $name = $this->getName();
     $data = parent::getWidgets();
     $data['currentroute'] = array('icon' => 'share', 'tooltip' => 'Route', 'map' => "{$name}.uri", 'default' => '{}');
     return $data;
 }
 public function testName()
 {
     $c = new ConfigCollector(array(), 'foo');
     $this->assertEquals('foo', $c->getName());
     $this->assertArrayHasKey('foo', $c->getWidgets());
 }