Skip to content

Commit 6c3526c

Browse files
committed
Fix incorrect function signature for factory
1 parent 778e85a commit 6c3526c

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

test/unittests/Database_Test.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,7 @@ protected function setUp(): void
9393
$this->factory->reset();
9494
$this->config = $this->factory->Config(CONFIG_XML);
9595
$database = $this->config->getSetting('database');
96-
$this->DB = $this->factory->database(
97-
$database['database'],
98-
$database['username'],
99-
$database['password'],
100-
$database['host'],
101-
true,
102-
);
96+
$this->DB = $this->factory->database();
10397

10498
$this->factory->setDatabase($this->DB);
10599
$this->factory->setConfig($this->config);

test/unittests/UserTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,7 @@ protected function setUp(): void
290290
$this->_factory->reset();
291291
$this->_configMock = $this->_factory->Config(CONFIG_XML);
292292
$database = $this->_configMock->getSetting('database');
293-
$this->_dbMock = $this->_factory->database(
294-
$database['database'],
295-
$database['username'],
296-
$database['password'],
297-
$database['host'],
298-
true
299-
);
293+
$this->_dbMock = $this->_factory->database();
300294

301295
$mockconfig = $this->getMockBuilder('NDB_Config')->getMock();
302296
$mockdb = $this->getMockBuilder('Database')->getMock();

0 commit comments

Comments
 (0)