Completed
Push — refonte ( 548acb...beeabd )
by Arnaud
10:11
created
src/LAG/AdminBundle/Tests/AdminBundle/Field/Factory/FieldFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $configurationFactory
48 48
             ->expects($this->once())
49 49
             ->method('create')
50
-            ->willReturnCallback(function ($field, $configuration) use ($actionConfiguration, $fieldConfiguration) {
50
+            ->willReturnCallback(function($field, $configuration) use ($actionConfiguration, $fieldConfiguration) {
51 51
                 $this->assertInstanceOf(StringField::class, $field);
52 52
                 $this->assertEquals([
53 53
                     'length' => 200,
Please login to merge, or discard this patch.
Tests/AdminBundle/Doctrine/Repository/DoctrineRepositoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         
55 55
         $repository = new FakeRepository($entityManager, $metadata, TestEntity::class);
56 56
     
57
-        $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) {
57
+        $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) {
58 58
             $repository->save($entity);
59 59
         });
60 60
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         
104 104
         $repository = new FakeRepository($entityManager, $metadata, TestEntity::class);
105 105
         
106
-        $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) {
106
+        $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) {
107 107
             $repository->delete($entity);
108 108
         });
109 109
     }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Form/Factory/FormFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     protected function invalidEntityTest(FormFactory $formFactory, AdminInterface $admin)
47 47
     {
48
-        $this->assertExceptionRaised(Exception::class, function () use ($formFactory, $admin) {
48
+        $this->assertExceptionRaised(Exception::class, function() use ($formFactory, $admin) {
49 49
             $formFactory->create(
50 50
                 TestFormType::class,
51 51
                 [],
Please login to merge, or discard this patch.
Tests/AdminBundle/DataProvider/Factory/DataProviderFactoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $factory = new DataProviderFactory($entityManager);
43 43
         $factory->add('a_data_provider', $dataProvider);
44 44
 
45
-        $this->assertExceptionRaised(Exception::class, function () use ($factory, $dataProvider) {
45
+        $this->assertExceptionRaised(Exception::class, function() use ($factory, $dataProvider) {
46 46
             $factory->add('a_data_provider', $dataProvider);
47 47
         });
48 48
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         $factory = new DataProviderFactory($entityManager);
96 96
 
97
-        $this->assertExceptionRaised(Exception::class, function () use ($factory) {
97
+        $this->assertExceptionRaised(Exception::class, function() use ($factory) {
98 98
             $factory->create('MyEntityClass');
99 99
         });
100 100
     }
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
         $factory->add('a_data_provider', $dataProvider);
109 109
 
110 110
         $this->assertEquals($dataProvider, $factory->get('a_data_provider'));
111
-        $this->assertExceptionRaised(Exception::class, function () use ($factory) {
111
+        $this->assertExceptionRaised(Exception::class, function() use ($factory) {
112 112
             $factory->get('wrong_data_provider');
113 113
         });
114
-        $this->assertExceptionRaised(Exception::class, function () use ($factory) {
114
+        $this->assertExceptionRaised(Exception::class, function() use ($factory) {
115 115
             $factory->get(null, null);
116 116
         });
117 117
     }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Configuration/ConfigurationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             'title' => 'Planet Application',
37 37
         ]);
38 38
     
39
-        $this->assertExceptionRaised(LogicException::class, function () use ($configuration) {
39
+        $this->assertExceptionRaised(LogicException::class, function() use ($configuration) {
40 40
             $configuration->setParameters([
41 41
                 'an_other_configuration' => 'value',
42 42
             ]);
Please login to merge, or discard this patch.