Skip to content

Infection Test

Infection Test #82

Triggered via schedule August 19, 2024 03:37
Status Success
Total duration 1h 0m 20s
Artifacts

infection.yml

on: schedule
Infection tests
1h 0m
Infection tests
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Infection tests
No files were found with the provided path: build/coverage/infection.html. No artifacts will be uploaded.
Infection tests: src/Classes/LocalCachingFilesystemDecorator.php#L28
Escaped Mutant for Mutator "TrueValue": @@ @@ { $this->cacheFileSystem = $cacheFileSystem; $this->remoteFileSystem = $remoteFileSystem; - $this->cacheEnabled = true; + $this->cacheEnabled = false; } /** * Temporarily disable the cache
Infection tests: src/Classes/LocalCachingFilesystemDecorator.php#L98
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ } public function read(string $location): string { - if ($this->cacheEnabled && $this->cacheFileSystem->fileExists($location)) { + if (!$this->cacheEnabled && !$this->cacheFileSystem->fileExists($location)) { return $this->cacheFileSystem->read($location); } $result = $this->remoteFileSystem->read($location);
Infection tests: src/Classes/LocalCachingFilesystemDecorator.php#L109
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ } public function readStream(string $location) { - if ($this->cacheEnabled && $this->cacheFileSystem->fileExists($location)) { + if (!$this->cacheEnabled && !$this->cacheFileSystem->fileExists($location)) { return $this->cacheFileSystem->readStream($location); } $result = $this->remoteFileSystem->readStream($location);
Infection tests: src/Classes/SchoolEvent.php#L242
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ public function clearDataForStudentAssociatedWithEvent(DateTime $dateTime) { $this->instructionalNotes = null; - $this->clearDataForDraftOrScheduledEvent(); + $this->removeMaterialsInDraft(); array_walk($this->learningMaterials, function (UserMaterial $lm) use ($dateTime) { $lm->clearTimedMaterial($dateTime);
Infection tests: src/Classes/SessionUser.php#L557
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ if (in_array(UserRoles::CURRICULUM_INVENTORY_REPORT_ADMINISTRATOR, $roles) && $this->isAdministeringCurriculumInventoryReport($curriculumInventoryReportId)) { $rhett[] = UserRoles::CURRICULUM_INVENTORY_REPORT_ADMINISTRATOR; } - return $rhett; + return count($rhett) > 1 ? array_slice($rhett, 0, 1, true) : $rhett; } /** * @inheritdoc
Infection tests: src/Classes/SessionUser.php#L647
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ { return $this->getInstructedOfferingIlmSessionCourseAndSchoolIds()['courseIds']; } - protected function getStudentAdvisedCourseIds(): array + private function getStudentAdvisedCourseIds(): array { return $this->getStudentAdvisedSessionAndCourseIds()['courseIds']; }
Infection tests: src/Classes/SessionUser.php#L679
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ { return $this->getInstructedOfferingIlmSessionCourseAndSchoolIds()['ilmIds']; } - protected function getStudentAdvisedSessionIds(): array + private function getStudentAdvisedSessionIds(): array { return $this->getStudentAdvisedSessionAndCourseIds()['sessionIds']; }
Infection tests: src/Classes/SessionUser.php#L775
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ { return $this->getCoursesCohortsProgramYearAndProgramIdsLinkedToProgramsDirectedByUser()['courseIds']; } - protected function getLearnerOfferingsIds(): array + private function getLearnerOfferingsIds(): array { return $this->getLearnerIlmAndOfferingIds()['offeringIds']; }
Infection tests: src/Classes/SessionUser.php#L846
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @throws Exception */ - protected function getCoursesCohortsProgramYearAndProgramIdsLinkedToProgramsDirectedByUser(): array + private function getCoursesCohortsProgramYearAndProgramIdsLinkedToProgramsDirectedByUser(): array { if (!isset($this->coursesCohortsProgramYearAndProgramIdsLinkedToProgramsDirectedByUser)) { $this->coursesCohortsProgramYearAndProgramIdsLinkedToProgramsDirectedByUser = $this->userRepository->getCoursesCohortsProgramYearAndProgramIdsLinkedToProgramsDirectedByUser($this->getId());
Infection tests: src/Classes/SessionUser.php#L871
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @throws Exception */ - protected function getStudentAdvisedSessionAndCourseIds(): array + private function getStudentAdvisedSessionAndCourseIds(): array { if (!isset($this->studentAdvisedSessionAndCourseIds)) { $this->studentAdvisedSessionAndCourseIds = $this->userRepository->getStudentAdvisedSessionAndCourseIds($this->getId());