mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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);
|
$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()
|
public function testFeesAndLimitsExists()
|
||||||
{
|
{
|
||||||
$data = [];
|
$data = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user