public function preAutoloadDump(Event $event) {
    $root = $this->getBuildRoot();
    $autoload = $this->package->getDevAutoload();
    $autoload['psr-0']["Drupal\\Tests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\KernelTests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\FunctionalTests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\FunctionalJavascriptTests"] = $root . "/core/tests";
    $autoload['psr-4']["Drupal\\simpletest\\"] = $root . "/core/modules/simpletest/src";
    $this->package->setDevAutoload($autoload);
  }
public function preAutoloadDump(Event $event) {
    $root = $this->getBuildRoot();
    $autoload = $this->package->getDevAutoload();
    $autoload['psr-0']["Drupal\\Tests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\KernelTests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\FunctionalTests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\FunctionalJavascriptTests"] = $root . "/core/tests";
    $autoload['psr-4']["Drupal\\simpletest\\"] = $root . "/core/modules/simpletest/src";
    $this->package->setDevAutoload($autoload);
  }
public function preAutoloadDump ( Event $ event ) { $ root = $ this -> getBuildRoot ( ) ; $ autoload = $ this -> package -> getDevAutoload ( ) ; $ autoload [ 'psr-0' ] [ "Drupal\\Tests" ] = $ root . "/core/tests" ; $ autoload [ 'psr-0' ] [ "Drupal\\KernelTests" ] = $ root . "/core/tests" ; $ autoload [ 'psr-0' ] [ "Drupal\\FunctionalTests" ] = $ root . "/core/tests" ; $ autoload [ 'psr-0' ] [ "Drupal\\FunctionalJavascriptTests" ] = $ root . "/core/tests" ; $ autoload [ 'psr-4' ] [ "Drupal\\simpletest\\" ] = $ root . "/core/modules/simpletest/src" ; $ this -> package -> setDevAutoload ( $ autoload ) ; }
Pre autoload dump event handler.

@param \Composer\Script\Event $event
Composer event.
Pre autoload dump event handler .