$item) { // First ensure there are all the menu item keys required. $this->assertArrayHasKey('title', $item); $this->assertArrayHasKey('description', $item); $this->assertArrayHasKey('page callback', $item); $this->assertArrayHasKey('type', $item); $this->assertArrayHasKey('access arguments', $item); // Check that all jbrowse instance paths are the correct type. $path_parts = explode('/', $path); if (($path_parts[0] == 'jbrowse') && (sizeof($path_parts) > 1)) { $this->assertEquals(MENU_SUGGESTED_ITEM, $item['type']); } } } }