File tree Expand file tree Collapse file tree 2 files changed +1
-32
lines changed 
Tests/Unit/DependencyInjection Expand file tree Collapse file tree 2 files changed +1
-32
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,6 @@ public function addTransportFactory(TransportFactoryInterface $transportFactory)
5252     */ 
5353    public  function  load (array  $ configs , ContainerBuilder   $ container )
5454    {
55-         // enable null transport by default. 
56-         array_unshift ($ configs , [
57-             'transport '  => [
58-                 'default '  => 'null:// ' ,
59-             ],
60-         ]);
61- 
6255        $ config  = $ this  ->processConfiguration (new  Configuration ($ this  ->factories ), $ configs );
6356
6457        $ loader  = new  YamlFileLoader ($ container , new  FileLocator (__DIR__ .'/../Resources/config ' ));
Original file line number Diff line number Diff line change 99use  Enqueue \Client \TraceableProducer ;
1010use  Enqueue \Null \NullContext ;
1111use  Enqueue \Null \Symfony \NullTransportFactory ;
12- use  Enqueue \Symfony \TransportFactoryInterface ;
1312use  Enqueue \Symfony \DefaultTransportFactory ;
13+ use  Enqueue \Symfony \TransportFactoryInterface ;
1414use  Enqueue \Test \ClassExtensionTrait ;
1515use  PHPUnit \Framework \TestCase ;
1616use  Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -116,30 +116,6 @@ public function testShouldUseNullTransportAsDefaultWhenExplicitlyConfigured()
116116        );
117117    }
118118
119-     public  function  testShouldUseNullTransportAsDefaultConfiguredViaDSN ()
120-     {
121-         $ container  = new  ContainerBuilder ();
122- 
123-         $ extension  = new  EnqueueExtension ();
124-         $ extension ->addTransportFactory (new  NullTransportFactory ());
125-         $ extension ->addTransportFactory (new  DefaultTransportFactory ());
126- 
127-         $ extension ->load ([[
128-             'transport '  => [
129-                 'default '  => 'null:// ' ,
130-             ],
131-         ]], $ container );
132- 
133-         self ::assertEquals (
134-             'enqueue.transport.default.context ' ,
135-             (string ) $ container ->getAlias ('enqueue.transport.context ' )
136-         );
137-         self ::assertEquals (
138-             'enqueue.transport.default_null.context ' ,
139-             (string ) $ container ->getAlias ('enqueue.transport.default.context ' )
140-         );
141-     }
142- 
143119    public  function  testShouldConfigureFooTransport ()
144120    {
145121        $ container  = new  ContainerBuilder ();
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments