/** * Test JPathway::getPathwayNames(). * * @return void * * @since 3.1 */ public function testGetPathwayNames() { $pathway = array(); $object1 = new stdClass(); $object1->name = 'Item1'; $object1->link = 'index.php?key=item1'; $pathway[] = $object1; $object2 = new stdClass(); $object2->name = 'Item2'; $object2->link = 'index.php?key=item2'; $pathway[] = $object2; TestReflection::setValue($this->fixture, '_pathway', $pathway); $this->assertThat($this->fixture->getPathwayNames(), $this->equalTo(array('Item1', 'Item2'))); }