mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Tests for setting config fields
This commit is contained in:
parent
5fb51656a6
commit
d4aeca5ad1
@ -47,6 +47,22 @@ class CompanyGatewayTest extends TestCase
|
||||
$this->assertNotNull($company_gateway);
|
||||
}
|
||||
|
||||
public function testSetConfigFields()
|
||||
{
|
||||
$company_gateway = CompanyGateway::first();
|
||||
|
||||
$this->assertNotNull($company_gateway->getConfig());
|
||||
|
||||
$company_gateway->setConfigField('test', 'test');
|
||||
|
||||
$this->assertEquals('test', $company_gateway->getConfigField('test'));
|
||||
|
||||
$company_gateway->setConfigField('signatureKey', 'hero');
|
||||
|
||||
$this->assertEquals('hero', $company_gateway->getConfigField('signatureKey'));
|
||||
|
||||
}
|
||||
|
||||
public function testFeesAndLimitsExists()
|
||||
{
|
||||
$data = [];
|
||||
|
Loading…
Reference in New Issue
Block a user