Skip to content

Merge pull request #14 from cycle/feat/save-entity #37

Merge pull request #14 from cycle/feat/save-entity

Merge pull request #14 from cycle/feat/save-entity #37

Triggered via push May 4, 2024 11:34
Status Success
Total duration 1m 10s
Artifacts

integrate.yml

on: push
commit-linting
12s
commit-linting
markdown-linting
3s
markdown-linting
Matrix: code-coverage
Matrix: coding-standards
Matrix: dependency-analysis
Matrix: mutation-testing
Matrix: security-analysis
Matrix: static-analysis
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L102
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * @throws NotFoundExceptionInterface * @throws Throwable */ - public final function save(bool $cascade = true) : StateInterface + public final function save(bool $cascade = false) : StateInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L108
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager(); $entityManager->persist($this, $cascade); - return $entityManager->run(throwException: false); + return $entityManager->run(throwException: true); } /** * Persists the current entity and throws an exception if an error occurs.
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L118
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * @throws NotFoundExceptionInterface * @throws Throwable */ - public final function saveOrFail(bool $cascade = true) : StateInterface + public final function saveOrFail(bool $cascade = false) : StateInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L131
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ - public final function persist(bool $cascade = true) : EntityManagerInterface + public final function persist(bool $cascade = false) : EntityManagerInterface { return Facade::getEntityManager()->persist($this, $cascade); }
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L141
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * @throws NotFoundExceptionInterface * @throws Throwable */ - public final function delete(bool $cascade = true) : StateInterface + public final function delete(bool $cascade = false) : StateInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L147
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager(); $entityManager->delete($this, $cascade); - return $entityManager->run(throwException: false); + return $entityManager->run(throwException: true); } /** * @throws ContainerExceptionInterface
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L170
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ - public final function remove(bool $cascade = true) : EntityManagerInterface + public final function remove(bool $cascade = false) : EntityManagerInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Spiral/Bootloader/ActiveRecordBootloader.php#L21
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { return [CycleOrmBootloader::class]; } - public function init(ContainerInterface $container) : void + protected function init(ContainerInterface $container) : void { Facade::setContainer($container); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L41
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ if (null === self::$container) { throw new ConfigurationException('Container has not been set. Please set the container first using setContainer() method.'); } - self::$orm ??= self::$container->get(ORMInterface::class); + self::$orm = self::$container->get(ORMInterface::class); if (null === self::$orm) { throw new ConfigurationException('The ORM Carrier is not configured.'); }