/** * Tests the getName() method * * @return void * * @since 3.4 * @covers JComponentRouterView::getName */ public function testGetName() { $this->object->set('name', 'test'); $this->assertEquals('test', $this->object->getName()); $this->object->set('name', null); $this->assertEquals('jcomponent', $this->object->getName()); }