/** * Test JComponentRouterViewconfiguration::setName * * @return void * * @since 3.4 * @covers JComponentRouterViewconfiguration::setName */ public function testSetName() { $this->assertEquals('test', $this->object->name); $this->assertEquals(array('test'), $this->object->path); $this->assertEquals($this->object, $this->object->setName('name')); $this->assertEquals('name', $this->object->name); $this->assertEquals(array('name'), $this->object->path); $object2 = new JComponentRouterViewconfiguration('parent'); $this->object->setParent($object2); $this->assertEquals(array('parent', 'name'), $this->object->path); $this->object->setName('name2'); $this->assertEquals(array('parent', 'name2'), $this->object->path); }