/** * Tear down Eloquent. */ public static function tearDownAfterClass() { Eloquent::unsetEventDispatcher(); Eloquent::unsetConnectionResolver(); }
/** * Disable model events. */ public function disableModelEvents() { $this->modelEventsDisabled = true; Model::unsetEventDispatcher(); }
public function tearDown() { m::close(); Illuminate\Database\Eloquent\Model::unsetEventDispatcher(); Carbon\Carbon::resetToStringFormat(); }