N98\Magento\Command\Installer\InstallCommandTester::getSampleDataPackages PHP Метод

getSampleDataPackages() публичный Метод

public getSampleDataPackages ( InstallCommand $command ) : array
$command InstallCommand
Результат array
    public function getSampleDataPackages(InstallCommand $command)
    {
        $commandClass = self::COMMAND_CLASS;
        $commandConfig = $command->getCommandConfig($commandClass);
        return $commandConfig['demo-data-packages'];
    }

Usage Example

 /**
  * @test that demo-data-packages actually exist
  */
 public function demoDataPackages()
 {
     $application = $this->getApplication();
     $application->add(new InstallCommand());
     /** @var InstallCommand $command */
     $command = $this->getApplication()->find('install');
     $tester = new InstallCommandTester();
     $packages = $tester->getMagentoPackages($command);
     $demoDataPackages = $tester->getSampleDataPackages($command);
     $this->assertSampleDataPackagesExist($packages, $demoDataPackages);
 }