public function testAggregatesMatching() { $flight = $this->createBasicFlight(1000); $flightTwo = $this->createBasicFlight(1000); $conf = $this->createUserConferenceEntry($flight->id); $confTwo = $this->createUserConferenceEntry($flightTwo->id); $this->runAggregator($confTwo->id); $conf = UserConference::find($conf->id); $this->assertEquals($flightTwo->id, $conf->flight->id, "Flight not remapped"); $this->assertNull(Flight::find($flight->id), "Flight not deleted"); }