Passed
Pull Request — master (#113)
by Arnaud
04:14
created
tests/AdminBundle/Event/Subscriber/AdminSubscriberTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $admin = $this->createMock(AdminInterface::class);
104 104
         $event = new AdminEvent($admin, $request);
105 105
 
106
-        $this->assertExceptionRaised(Exception::class, function () use ($subscriber, $event) {
106
+        $this->assertExceptionRaised(Exception::class, function() use ($subscriber, $event) {
107 107
             $subscriber->handleRequest($event);
108 108
         });
109 109
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function testCreateView(string $actionName)
117 117
     {
118
-        list($subscriber, , $viewFactory) = $this->createSubscriber();
118
+        list($subscriber,, $viewFactory) = $this->createSubscriber();
119 119
         $view = $this->createMock(ViewInterface::class);
120 120
 
121 121
         $actionConfiguration = $this->createMock(ActionConfiguration::class);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     public function testCreateViewWithRedirection()
209 209
     {
210 210
         $actionName = 'edit';
211
-        list($subscriber, , $viewFactory) = $this->createSubscriber();
211
+        list($subscriber,, $viewFactory) = $this->createSubscriber();
212 212
         $view = $this->createMock(ViewInterface::class);
213 213
 
214 214
         $actionConfiguration = $this->createMock(ActionConfiguration::class);
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      */
359 359
     public function testLoadEntitiesWithMultipleStrategy()
360 360
     {
361
-        list($subscriber, , , $dataProviderFactory, , , ,) = $this->createSubscriber();
361
+        list($subscriber,,, $dataProviderFactory,,,,) = $this->createSubscriber();
362 362
 
363 363
         $actionConfiguration = $this->createMock(ActionConfiguration::class);
364 364
         $actionConfiguration
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
      */
429 429
     public function testLoadEntitiesWithUniqueStrategy()
430 430
     {
431
-        list($subscriber, , , $dataProviderFactory) = $this->createSubscriber();
431
+        list($subscriber,,, $dataProviderFactory) = $this->createSubscriber();
432 432
 
433 433
         $actionConfiguration = $this->createMock(ActionConfiguration::class);
434 434
         $actionConfiguration
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
      */
502 502
     public function testLoadEntitiesWithoutIdentifier()
503 503
     {
504
-        list($subscriber, , , $dataProviderFactory) = $this->createSubscriber();
504
+        list($subscriber,,, $dataProviderFactory) = $this->createSubscriber();
505 505
 
506 506
         $actionConfiguration = $this->createMock(ActionConfiguration::class);
507 507
         $actionConfiguration
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
         $request = new Request();
559 559
         $event = new EntityEvent($admin, $request);
560 560
 
561
-        $this->assertExceptionRaised(Exception::class, function () use ($subscriber, $event) {
561
+        $this->assertExceptionRaised(Exception::class, function() use ($subscriber, $event) {
562 562
             $subscriber->loadEntities($event);
563 563
         });
564 564
     }
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
      */
569 569
     public function testSaveEntity()
570 570
     {
571
-        list($subscriber, , , $dataProviderFactory, , $session, $translator) = $this->createSubscriber();
571
+        list($subscriber,,, $dataProviderFactory,, $session, $translator) = $this->createSubscriber();
572 572
 
573 573
         $adminConfiguration = $this->createMock(AdminConfiguration::class);
574 574
         $adminConfiguration
Please login to merge, or discard this patch.