/**
  * @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);
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.filter', 'lug.grid.filter');
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.sort', 'lug.grid.sort');
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.batch', 'lug.grid.batch');
 }
Beispiel #5
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.action', 'lug.grid.action');
 }
 public function __construct()
 {
     parent::__construct('lug.grid.registry.batch.form.subscriber', 'lug.grid.batch.form.subscriber', 'driver');
 }
Beispiel #7
0
 public function __construct()
 {
     parent::__construct('lug.resource.registry.factory', 'lug.factory', 'resource');
 }
 public function __construct()
 {
     parent::__construct('lug.resource.registry.domain_manager', 'lug.domain_manager', 'resource');
 }