File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments