- /**
- * @private For internal use by SpecialJavaScriptTest
- * @since 1.32
- * @return array
- * @codeCoverageIgnore
- */
- public function getBaseModulesInternal() {
- return $this->getBaseModules();
+ private function getGroupId( $groupName ) {
+ if ( $groupName === null ) {
+ return null;
+ }
+
+ if ( !array_key_exists( $groupName, $this->groupIds ) ) {
+ $this->groupIds[$groupName] = count( $this->groupIds );
+ }
+
+ return $this->groupIds[$groupName];