Skip to content

Commit 64cfaef

Browse files
committed
Simplify code for validator pass test
1 parent f1599fa commit 64cfaef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/Unit/DependencyInjection/Compiler/ValidationPassTest.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ public function testRegisterDocumentsValidation($hasPhpcr, $hasValidator, $shoul
5050
'addXmlMappings',
5151
[["{$dir}/../../Resources/config/validation-phpcr.xml"]]
5252
);
53-
} else {
54-
if ($hasValidator) {
55-
$definition = $this->container->findDefinition('validator.builder');
53+
} elseif ($hasValidator) {
54+
$definition = $this->container->findDefinition('validator.builder');
5655

57-
$this->assertFalse($definition->hasMethodCall('addXmlMappings'));
58-
}
56+
$this->assertFalse($definition->hasMethodCall('addXmlMappings'));
5957
}
6058
}
6159

0 commit comments

Comments
 (0)