Fix conflit

This commit is contained in:
Too
2018-06-14 23:02:24 +08:00
35 changed files with 27280 additions and 8948 deletions
+49
View File
@@ -0,0 +1,49 @@
<?php
namespace Tests\Unit\BookingTest;
use App\User;
use Artisan;
use Tests\TestCase;
class BookingTest extends TestCase
{
protected $user;
public function setUp()
{
parent::setUp();
Artisan::call('db:seed');
$this->user = factory(User::class)->create();
}
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',
'cnap' => '2131rew',
'term' => 'x2_cash',
'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,
]);
dd($response->getContent());
$response->assertStatus(200);
}
}
-18
View File
@@ -1,18 +0,0 @@
<?php
namespace Tests\Unit;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->assertTrue(true);
}
}