Remove remove_bid_after_accept setting (#1100)
* Remove "Remove bid on accept" setting and remove bids after PIREP was filed fixes #1039 * Add migration to remove setting from database * fix migration naming and remove obsolete code Co-authored-by: Andreas Palm <ap@ewsp.de>
This commit is contained in:
@@ -528,7 +528,6 @@ class PIREPTest extends TestCase
|
||||
{
|
||||
$bidSvc = app(BidService::class);
|
||||
$flightSvc = app(FlightService::class);
|
||||
$this->settingsRepo->store('pireps.remove_bid_on_accept', true);
|
||||
|
||||
$user = factory(User::class)->create([
|
||||
'flight_time' => 0,
|
||||
@@ -549,7 +548,7 @@ class PIREPTest extends TestCase
|
||||
]);
|
||||
|
||||
$pirep = $this->pirepSvc->create($pirep, []);
|
||||
$this->pirepSvc->changeState($pirep, PirepState::ACCEPTED);
|
||||
$this->pirepSvc->submit($pirep);
|
||||
|
||||
$user_bid = Bid::where([
|
||||
'user_id' => $user->id,
|
||||
|
||||
Reference in New Issue
Block a user