Skip to content

Commit 738b490

Browse files
MFTF-33780: Fixed verification tests
1 parent c817aea commit 738b490

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Magento/FunctionalTestingFramework/Test/Objects/ActionObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function resolveReferences()
290290
$this->resolveUrlReference();
291291
$this->resolveDataInputReferences();
292292
$this->validateTimezoneAttribute();
293-
if ($this->getType() === "deleteData") {
293+
if ($this->getType() === 'deleteData') {
294294
$this->validateMutuallyExclusiveAttributes(self::DELETE_DATA_MUTUAL_EXCLUSIVE_ATTRIBUTES);
295295
}
296296
}
@@ -697,7 +697,7 @@ private function resolveEntityDataObjectReference($obj, $match)
697697
{
698698
list(,$objField) = $this->stripAndSplitReference($match);
699699

700-
if (strpos($objField, '[') === true) {
700+
if (strpos($objField, '[') !== false) {
701701
// Access <array>...</array>
702702
$parts = explode('[', $objField);
703703
$name = $parts[0];

src/Magento/FunctionalTestingFramework/Util/Sorter/ParallelGroupSorter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function getSuiteGroupCounts($suiteNameToTestSize, $testNameToSize, $gro
146146
// Calculate test group time for ceiling
147147
$ceilSuiteNameToGroupCount = $this->getSuiteGroupCountFromGroupTime($suiteNameToTestSize, $ceilSuiteGroupTime);
148148
$ceilSuiteGroupTotal = array_sum($ceilSuiteNameToGroupCount);
149-
$ceilTestGroupTotal = $groupTotal - $ceilSuiteGroupTotal;
149+
$ceilTestGroupTotal = (int) $groupTotal - (int) $ceilSuiteGroupTotal;
150150

151151
if ($ceilTestGroupTotal === 0) {
152152
$ceilTestGroupTime = 0;

0 commit comments

Comments
 (0)