Skip to content

Commit

Permalink
CS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlundrigan committed Dec 22, 2014
1 parent 5130fb0 commit c9893b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/LdcUserProfileTest/Service/ProfileServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public function testConstructFormForUserProcessesAllRegisteredExtensionsOnSave()
public function testGetProfileForUser()
{
$mockUser = \Mockery::mock('ZfcUser\Entity\UserInterface');

$mockUserData = new \stdClass();
$mockUserData->test = 'hi';

Expand All @@ -437,25 +437,25 @@ public function testGetProfileForUser()
$expectedResult = new \stdClass();
$expectedResult->testext = new \stdClass();
$expectedResult->testext->test = 'hi';

$this->assertEquals($expectedResult, $result);
}

public function testGetProfileForUserEntityKeyReturnsNullIfUserHasNoRecordForExtension()
{
$mockUser = \Mockery::mock('ZfcUser\Entity\UserInterface');

$ext = $this->testRegisterExtension();
$ext->shouldReceive('getObjectForUser')->withArgs(array($mockUser))->once()->andReturn(null);

$result = $this->service->getProfileForUser($mockUser);

$expectedResult = new \stdClass();
$expectedResult->testext = null;

$this->assertEquals($expectedResult, $result);
}

public function testGetProfileForUserFiresEvents()
{
$mockEventManager = new TriggerCountingEventManager();
Expand All @@ -469,7 +469,7 @@ public function testGetProfileForUserFiresEvents()
'LdcUserProfile\Service\ProfileService::getProfileForUser.post' => 1,
), $mockEventManager->triggeredEventCount);
}

public function testGetSetEventManager()
{
$mock = \Mockery::mock('Zend\EventManager\EventManagerInterface');
Expand Down

0 comments on commit c9893b6

Please sign in to comment.