Пример #1
0
 public function testGetChildId()
 {
     $this->_populateSampleStructure();
     $this->assertFalse($this->_structure->getChildId('nonexisting-parent', 'does not matter'));
     $this->assertEquals('five', $this->_structure->getChildId('six', 'f'));
 }
Пример #2
0
 /**
  * Get child name by alias
  *
  * @param string $parentName
  * @param string $alias
  * @return bool|string
  */
 public function getChildName($parentName, $alias)
 {
     return $this->_structure->getChildId($parentName, $alias);
 }