/** * @expectedException \Lug\Bundle\RegistryBundle\Exception\TagAttributeNotFoundException * @expectedExceptionMessage The attribute "my.alias" could not be found for the tag "my.tag" on the "my.service" service. */ public function testProcessWithMissingResourceAttribute() { $container = $this->createContainerBuilderMock(); $container->expects($this->once())->method('findTaggedServiceIds')->with($this->identicalTo($this->tag))->will($this->returnValue(['my.service' => [[]]])); $container->expects($this->once())->method('getDefinition')->with($this->identicalTo($this->registry))->will($this->returnValue($registry = $this->createDefinitionMock())); $this->compiler->process($container); }
public function __construct() { parent::__construct('lug.grid.registry.filter.form', 'lug.grid.filter.form', 'filter'); }
public function __construct() { parent::__construct('lug.resource.registry.manager', 'lug.manager', 'resource'); }
public function __construct() { parent::__construct('lug.resource.registry.factory', 'lug.factory', 'resource'); }
public function __construct() { parent::__construct('lug.grid.registry.action', 'lug.grid.action'); }
public function __construct() { parent::__construct('lug.grid.registry.batch', 'lug.grid.batch'); }
public function __construct() { parent::__construct('lug.grid.registry.batch.form.subscriber', 'lug.grid.batch.form.subscriber', 'driver'); }
public function __construct() { parent::__construct('lug.grid.registry.sort', 'lug.grid.sort'); }