updated readme

This commit is contained in:
Jack Goh
2018-06-12 09:46:42 +08:00
parent 929266a09c
commit a3cb5344ee
9 changed files with 449 additions and 40 deletions
+28 -22
View File
@@ -2,17 +2,14 @@
namespace Tests\Unit\BookingTest;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Database\Seeder;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Artisan;
use App\User;
use Artisan;
use Tests\TestCase;
class BookingTest extends TestCase
{
protected $user;
public function setUp()
{
parent::setUp();
@@ -20,24 +17,33 @@ class BookingTest extends TestCase
$this->user = factory(User::class)->create();
}
public function testPost()
{
$response =
$this->actingAs($this->user)
->postJson('/api/booking/', [
public function testPost()
{
$response =
$this->actingAs($this->user)
->postJson('/api/booking/', [
'term' => 'x1_ba',
'account_name' => 'johnny',
'account_num' => '1234567',
'bank_name' => 'myabnak',
'bank_branch' => 'banking',
'company_name' => 'besaras',
'company_address' => 'californina',
'bank_address' => 'cyber',
'swift_code' => '123wert',
'account_num' => '1234567',
'bank_name' => 'myabnak',
'bank_branch' => 'banking',
'company_name' => 'besaras',
'company_address' => 'californina',
'bank_address' => 'cyber',
'swift_code' => '123wert',
'cnap' => '2131rew',
'term' => 'x2_cash',
'amount' => '14000'
'rmb_book_amount' => 14000,
'rmb_book_pay_method' => 'x1_ba',
'rmb_book_account_name' => 'Xiao Xue',
'rmb_book_acc_no' => '12332123123',
'rmb_book_bank_branch' => 'ShenZhen',
'amount' => 14000,
]);
$response->assertStatus(500);
}
dd($response->getContent());
$response->assertStatus(200);
}
}
}