class DemodataCompilerPassTest extends TestCase
{ private ContainerBuilder
$builder;
protected function setUp(): void
{ $this->builder =
new ContainerBuilder();
$this->builder->
setDefinition(DemodataCommand::
class,
(new Definition(DemodataCommand::
class))->
setPublic(true
));
$this->builder->
addCompilerPass(new DemodataCompilerPass());
} /**
* @dataProvider definitionProvider
*/
public function test(?string
$name, ?int
$default, ?string
$description): void
{ $definition =
new Definition(\ArrayObject::
class);
$definition->
addTag('shopware.demodata_generator',
['option-name' =>
$name, 'option-default' =>
$default, 'option-description' =>
$description]);
$this->builder->
setDefinition('foo',
$definition);