Skip to content

Commit 52f98fe

Browse files
committed
Add some setUpTestDoublesForFactorUser calls
1 parent 05f24f1 commit 52f98fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unittests/UserTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ public function testFactoryRetrievesUserInfo()
354354
*/
355355
public function testGetDataForLanguagePreferences()
356356
{
357+
$this->_setUpTestDoublesForFactoryUser();
357358
$this->_user = \User::factory(self::USERNAME);
358359
$this->assertEquals(
359360
$this->_userInfoComplete['language_preference'],
@@ -369,6 +370,7 @@ public function testGetDataForLanguagePreferences()
369370
*/
370371
public function testGetFullname()
371372
{
373+
$this->_setUpTestDoublesForFactoryUser();
372374
$this->_user = \User::factory(self::USERNAME);
373375
$this->assertEquals(
374376
$this->_userInfoComplete['Real_name'],
@@ -384,6 +386,7 @@ public function testGetFullname()
384386
*/
385387
public function testGetId()
386388
{
389+
$this->_setUpTestDoublesForFactoryUser();
387390
$this->_user = \User::factory(self::USERNAME);
388391
$this->assertEquals(
389392
$this->_userInfoComplete['ID'],
@@ -399,6 +402,7 @@ public function testGetId()
399402
*/
400403
public function testGetUsername()
401404
{
405+
$this->_setUpTestDoublesForFactoryUser();
402406
$this->_user = \User::factory(self::USERNAME);
403407
$this->assertEquals(
404408
$this->_userInfoComplete['UserID'],

0 commit comments

Comments
 (0)