/**
  * @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);
 }
示例#2
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.filter.form', 'lug.grid.filter.form', 'filter');
 }
示例#3
0
 public function __construct()
 {
     parent::__construct('lug.resource.registry.manager', 'lug.manager', 'resource');
 }
示例#4
0
 public function __construct()
 {
     parent::__construct('lug.resource.registry.factory', 'lug.factory', 'resource');
 }
示例#5
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.action', 'lug.grid.action');
 }
示例#6
0
 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');
 }
示例#8
0
 public function __construct()
 {
     parent::__construct('lug.grid.registry.sort', 'lug.grid.sort');
 }