mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38:39 +00:00
fix tests
This commit is contained in:
parent
fdcf1645f2
commit
5a1ea1ee49
|
|
@ -216,7 +216,7 @@ final class ReadMapper extends DataMapperAbstract
|
||||||
/** @var null|Builder ...$options */
|
/** @var null|Builder ...$options */
|
||||||
return $this->executeGetAll(...$options);
|
return $this->executeGetAll(...$options);
|
||||||
case MapperType::GET_RANDOM:
|
case MapperType::GET_RANDOM:
|
||||||
return $this->executeGetRaw();
|
return $this->executeRandom();
|
||||||
case MapperType::COUNT_MODELS:
|
case MapperType::COUNT_MODELS:
|
||||||
return $this->executeCount();
|
return $this->executeCount();
|
||||||
case MapperType::SUM_MODELS:
|
case MapperType::SUM_MODELS:
|
||||||
|
|
|
||||||
|
|
@ -253,15 +253,15 @@ class BinarySearchTree
|
||||||
if ($node->parent->left !== null
|
if ($node->parent->left !== null
|
||||||
&& $node->parent->left->root?->compare($node->data) === 0
|
&& $node->parent->left->root?->compare($node->data) === 0
|
||||||
) {
|
) {
|
||||||
$node->parent->left = $temp?->tree;
|
$node->parent->left = $temp->tree;
|
||||||
} elseif ($node->parent->right !== null
|
} elseif ($node->parent->right !== null
|
||||||
&& $node->parent->right->root?->compare($node->data) === 0
|
&& $node->parent->right->root?->compare($node->data) === 0
|
||||||
) {
|
) {
|
||||||
$node->parent->right = $temp?->tree;
|
$node->parent->right = $temp->tree;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp->parent = $node?->parent;
|
$temp->parent = $node->parent;
|
||||||
|
|
||||||
$node = null;
|
$node = null;
|
||||||
|
|
||||||
|
|
@ -278,15 +278,15 @@ class BinarySearchTree
|
||||||
if ($node->parent->left !== null
|
if ($node->parent->left !== null
|
||||||
&& $node->parent->left->root?->compare($node->data) === 0
|
&& $node->parent->left->root?->compare($node->data) === 0
|
||||||
) {
|
) {
|
||||||
$node->parent->left = $temp?->tree;
|
$node->parent->left = $temp->tree;
|
||||||
} elseif ($node->parent->right !== null
|
} elseif ($node->parent->right !== null
|
||||||
&& $node->parent->right->root?->compare($node->data) === 0
|
&& $node->parent->right->root?->compare($node->data) === 0
|
||||||
) {
|
) {
|
||||||
$node->parent->right = $temp?->tree;
|
$node->parent->right = $temp->tree;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp->parent = $node?->parent;
|
$temp->parent = $node->parent;
|
||||||
|
|
||||||
$node = null;
|
$node = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user