fix unknow column when testing

This commit is contained in:
Jack Goh
2018-08-13 12:40:08 +08:00
parent 356b1e5267
commit b5c8688a56
3 changed files with 2 additions and 2 deletions
@@ -11,6 +11,5 @@ $factory->define(App\UserBankSlip::class, function (Faker $faker) {
'transfer_amount' => $faker->randomDigit,
'cust_marking' => str_random(10),
'booking_id' => $faker->randomElement($book_id),
'estimated_arrival_time' => $faker->randomDigit
];
});
@@ -309,6 +309,7 @@
approveUserSlip() {
this.loading_btn = true
// TODO : this no longer used
let newApprove = {
estimated_arrival_time: this.estimated_arrival_time
}
@@ -340,6 +341,7 @@
this.centerDialogVisible = false
let newApprove = {
// TODO : this no longer used
estimated_arrival_time: this.estimated_arrival_time,
reject_reason: this.reject_reason
}
-1
View File
@@ -134,7 +134,6 @@ class BookingTest extends TestCase
{
$this->actingAs($this->user)
->json('POST','/api/booking/' . $this->booking->id . '/approve-bank-slip', [
'estimated_arrival_time' => '6000'
])
->assertSuccessful();
}