Skip to content
Permalink
Browse files

tests: Fixed test.

  • Loading branch information...
tarlepp committed Jun 25, 2019
1 parent 0a9a422 commit 4266f80ed67b0bcdf201668ed9b0dc5a85516dea
Showing with 3 additions and 5 deletions.
  1. +3 −5 tests/Integration/AutoMapper/UserGroup/RequestMapperTest.php
@@ -9,12 +9,10 @@
namespace App\Tests\Integration\AutoMapper\UserGroup;
use App\AutoMapper\RestRequestMapper;
use App\AutoMapper\User\RequestMapper;
use App\AutoMapper\UserGroup\RequestMapper;
use App\DTO\UserGroup as DTO;
use App\Entity\Role;
use App\Entity\UserGroup;
use App\Resource\RoleResource;
use App\Resource\UserGroupResource;
use App\Tests\Integration\AutoMapper\RestRequestMapperTestCase;
use Generator;
use PHPUnit\Framework\MockObject\MockObject;
@@ -50,7 +48,7 @@ class RequestMapperTest extends RestRequestMapperTestCase
];
/**
* @var MockObject|UserGroupResource
* @var MockObject|RoleResource
*/
protected $mockRoleResource;
@@ -78,7 +76,7 @@ public function testThatTransformUserGroupsCallsExpectedResourceMethod(string $d
*/
$dto = $this->mapperObject->mapToObject($request, new $dtoClass());
static::assertSame([$role], $dto->getRole());
static::assertSame($role, $dto->getRole());
}
/**

0 comments on commit 4266f80

Please sign in to comment.
You can’t perform that action at this time.