fix tests

This commit is contained in:
Dennis Eichhorn 2023-10-22 13:22:00 +00:00
parent fdcf1645f2
commit 5a1ea1ee49
2 changed files with 7 additions and 7 deletions

View File

@ -216,7 +216,7 @@ final class ReadMapper extends DataMapperAbstract
/** @var null|Builder ...$options */
return $this->executeGetAll(...$options);
case MapperType::GET_RANDOM:
return $this->executeGetRaw();
return $this->executeRandom();
case MapperType::COUNT_MODELS:
return $this->executeCount();
case MapperType::SUM_MODELS:

View File

@ -253,15 +253,15 @@ class BinarySearchTree
if ($node->parent->left !== null
&& $node->parent->left->root?->compare($node->data) === 0
) {
$node->parent->left = $temp?->tree;
$node->parent->left = $temp->tree;
} elseif ($node->parent->right !== null
&& $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;
@ -278,15 +278,15 @@ class BinarySearchTree
if ($node->parent->left !== null
&& $node->parent->left->root?->compare($node->data) === 0
) {
$node->parent->left = $temp?->tree;
$node->parent->left = $temp->tree;
} elseif ($node->parent->right !== null
&& $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;