This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console/Test/DataProvider/ProfileDataProviderTrait.php

26 lines
634 B
PHP
Raw Normal View History

2018-11-23 12:29:20 +00:00
<?php
namespace Drupal\Console\Test\DataProvider;
/**
* Class ProfileDataProviderTrait
* @package Drupal\Console\Test\DataProvider
*/
trait ProfileDataProviderTrait
{
/**
* @return array
*/
public function commandData()
{
$this->setUpTemporaryDirectory();
return [
// Profile name, machine name, description, core version,
// dependencies, distribution name.
['Foo', 'foo' . rand(), $this->dir . '/profiles', 'Description', '8.x', null, false],
['Foo', 'foo' . rand(), $this->dir . '/profiles', 'Description', '8.x', null, 'Bar'],
];
}
}