Skip to content

Commit

Permalink
Fix incorrect function signature for factory
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Mar 7, 2023
1 parent 778e85a commit 6c3526c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions test/unittests/Database_Test.php
Expand Up @@ -93,13 +93,7 @@ protected function setUp(): void
$this->factory->reset();
$this->config = $this->factory->Config(CONFIG_XML);
$database = $this->config->getSetting('database');
$this->DB = $this->factory->database(
$database['database'],
$database['username'],
$database['password'],
$database['host'],
true,
);
$this->DB = $this->factory->database();

$this->factory->setDatabase($this->DB);
$this->factory->setConfig($this->config);
Expand Down
8 changes: 1 addition & 7 deletions test/unittests/UserTest.php
Expand Up @@ -290,13 +290,7 @@ protected function setUp(): void
$this->_factory->reset();
$this->_configMock = $this->_factory->Config(CONFIG_XML);
$database = $this->_configMock->getSetting('database');
$this->_dbMock = $this->_factory->database(
$database['database'],
$database['username'],
$database['password'],
$database['host'],
true
);
$this->_dbMock = $this->_factory->database();

$mockconfig = $this->getMockBuilder('NDB_Config')->getMock();
$mockdb = $this->getMockBuilder('Database')->getMock();
Expand Down

0 comments on commit 6c3526c

Please sign in to comment.