Skip to content

Improve ACC missing driver ids #64

@mauserrifle

Description

@mauserrifle

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());
    }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions