Skip to content

Commit 7c096eb

Browse files
committed
Remove unused mockFactory
1 parent 6c3526c commit 7c096eb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

test/unittests/UserTest.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,7 @@ class UserTest extends TestCase
260260
* @var \Database | PHPUnit\Framework\MockObject\MockObject
261261
*/
262262
private $_mockDB;
263-
/**
264-
* Test double for Database object for hasLoggedIn method
265-
*
266-
* @note This is needed for User::hasLoggedIn because it declares and uses
267-
* the database differently than other methods in the User class.
268-
* This can be changed when the rest of the User class updates how it
269-
* declares its database. - Alexandra Livadas
270-
*
271-
* @var NDB_Factory
272-
*/
273-
private $_mockFactory;
263+
274264
/**
275265
* Maps config names to values
276266
* Used to set behaviour of NDB_Config test double
@@ -300,8 +290,6 @@ protected function setUp(): void
300290

301291
$this->_mockDB = $mockdb;
302292
$this->_mockConfig = $mockconfig;
303-
$this->_mockFactory = \NDB_Factory::singleton();
304-
$this->_mockFactory->setDatabase($this->_dbMock);
305293

306294
$this->_factory->setConfig($this->_mockConfig);
307295

0 commit comments

Comments
 (0)