jobList = $this->createMock(IJobList::class); $this->repairStep = new SanitizeAccountProperties($this->jobList); } public function testGetName(): void { self::assertStringContainsString('Validate account properties', $this->repairStep->getName()); } public function testRun(): void { $this->jobList->expects(self::once()) ->method('add') ->with(SanitizeAccountPropertiesJob::class, null); $output = $this->createMock(IOutput::class); $output->expects(self::once()) ->method('info') ->with(self::matchesRegularExpression('/queued background/i')); $this->repairStep->run($output); } }