/**
* @covers ::insertLogEntry
*/
public function testProcessPhpUnitResults(): void
{ $phpunit_error_xml = __DIR__ . '/../../../Tests/Core/Test/fixtures/phpunit_error.xml';
$res = JUnitConverter::
xmlToRows(1,
$phpunit_error_xml);
$runner = PhpUnitTestRunner::
create(\Drupal::
getContainer());
$test_run = TestRun::
createNew($this->testRunResultsStorage
);
$runner->
processPhpUnitResults($test_run,
$res);
$this->
assertEquals(4,
$this->connection->
select('simpletest'
)->
countQuery()->
execute()->
fetchField());
} /**
* Returns a sample test run log entry.
*
* @param string $test_class
* The test class.
*
* @return string[]
* An array with the elements to be logged.
*/