function test_single_node() { self::$n = new Navigation(); /** * This is the tree on first install, just an index page. */ self::$n->tree = array((object) array('data' => 'Home', 'attr' => (object) array('id' => 'index', 'sort' => 0))); /** * Should have only one id: * * index */ self::$this->assertEquals(self::$n->get_all_ids(), array('index')); }