|
@@ -140,7 +140,7 @@ discard block |
|
|
block discarded – undo |
|
140
|
140
|
$this->entityManager->expects(static::exactly(2))->method('commit'); |
|
141
|
141
|
$this->entityManager->expects(static::never())->method('rollback'); |
|
142
|
142
|
|
|
143
|
|
- $nestedTransaction = function ($class, $instance) |
|
|
143
|
+ $nestedTransaction = function($class, $instance) |
|
144
|
144
|
{ |
|
145
|
145
|
$this->transactionalInterceptor->intercept( |
|
146
|
146
|
new MethodInvocation($class->getMethod('aMethod'), $instance, array(), array())); |
|
@@ -180,7 +180,7 @@ discard block |
|
|
block discarded – undo |
|
180
|
180
|
$this->entityManager->expects(static::exactly(2))->method('commit'); |
|
181
|
181
|
$this->entityManager->expects(static::never())->method('rollback'); |
|
182
|
182
|
|
|
183
|
|
- $nestedTransaction = function ($class, $instance) |
|
|
183
|
+ $nestedTransaction = function($class, $instance) |
|
184
|
184
|
{ |
|
185
|
185
|
$this->transactionalInterceptor->intercept( |
|
186
|
186
|
new MethodInvocation($class->getMethod('aMethod'), $instance, array(), array())); |
|
@@ -248,7 +248,7 @@ discard block |
|
|
block discarded – undo |
|
248
|
248
|
$this->reader->expects(static::once())->method('getMethodAnnotation')->willReturn(null); |
|
249
|
249
|
$this->reader->expects(static::once())->method('getClassAnnotation')->willReturn($annotation); |
|
250
|
250
|
$this->container->expects(static::exactly(2))->method('getParameter')->willReturnCallback( |
|
251
|
|
- function ($parameter) use($exceptionClassName) |
|
|
251
|
+ function($parameter) use($exceptionClassName) |
|
252
|
252
|
{ |
|
253
|
253
|
if ($parameter === (Configuration::ROOT_NODE_NAME . '.' . Configuration::DEFAULT_POLICY)) { |
|
254
|
254
|
$value = Transactional::REQUIRED; |