1
0
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:
David Bomba 2023-08-19 15:55:00 +10:00
parent 5fb51656a6
commit d4aeca5ad1

View File

@ -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 = [];