-
-
Couldn't load subscription status.
- Fork 23
Open
Labels
Description
Currently laps with a missing driver id are ignored. We should create that it will create a dummy participant with Unknown name.
/**
* Test no exception on missing driver id used in laps
*/
public function testNoExceptionOnMissingDriverIdUsedInLaps()
{
// The path to the data source
$file_path = realpath(__DIR__.
'/logs/assettocorsa-competizione/'.
'laps.with.unknown.carid.json');
// Get the session
$session = Data_Reader::factory($file_path)->getSession();
// Get participants
$participants = $session->getParticipants();
// Assert drivers
$this->assertSame('Alberto For',
$participants[0]->getDriver()->getName());
}