Skip to content

Commit dbceba1

Browse files
committed
MQE-741: two steps with same step key, the later step will overwrite the previous step.
- improve performance
1 parent d3a54e6 commit dbceba1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Magento/FunctionalTestingFramework/Config/SchemaLocator.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@ public function __construct($schemaPath, $perFileSchema = null)
3535
{
3636
if (constant('FW_BP') && file_exists(FW_BP . DIRECTORY_SEPARATOR . $schemaPath)) {
3737
$this->schemaPath = FW_BP . DIRECTORY_SEPARATOR . $schemaPath;
38-
$this->perFileSchema = $perFileSchema === null
39-
? $this->schemaPath
40-
: FW_BP . DIRECTORY_SEPARATOR . $perFileSchema;
38+
$this->perFileSchema = $perFileSchema === null ? null : FW_BP . DIRECTORY_SEPARATOR . $perFileSchema;
4139
} else {
4240
$path = dirname(dirname(dirname(__DIR__)));
4341
$path = str_replace('\\', DIRECTORY_SEPARATOR, $path);
4442
$this->schemaPath = $path . DIRECTORY_SEPARATOR . $schemaPath;
45-
$this->perFileSchema = $perFileSchema === null
46-
? $this->schemaPath
47-
: $path . DIRECTORY_SEPARATOR . $perFileSchema;
43+
$this->perFileSchema = $perFileSchema === null ? null : $path . DIRECTORY_SEPARATOR . $perFileSchema;
4844
}
4945
}
5046

0 commit comments

Comments
 (0)