/** * Test loading a match by providing the match id * @covers BBTournament::match */ public function test_match_after_report() { $this->get_tournament_with_open_matches(); $match = $this->object->open_matches[0]; $match->set_winner($match->team()); $this->assertSave($match->report()); $fresh_match = $this->object->match($match); $this->assertEquals($match->id, $fresh_match->id); }