Add seeder and test for setting_credit

This commit is contained in:
Too
2018-06-26 11:47:48 +08:00
parent 3129da5df4
commit f31f39caec
3 changed files with 25 additions and 1 deletions
+3 -1
View File
@@ -24,10 +24,12 @@ class SettingCreditTest extends TestCase
}
public function testStore(){
$this->actingAs($this->user)
->postJson('/api/setting-credit/', [
'rmb_credit_limit' => '5000',
'usd_credit_limit' => '2000'
'usd_credit_limit' => '2000',
'time_limit' => '500'
])
->assertStatus(201);
}