File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
Tests/Security/Authentification/Provider Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,11 @@ class OAuthProviderTest extends \PHPUnit_Framework_TestCase
49
49
50
50
public function setUp ()
51
51
{
52
- $ this ->user = $ this ->getMockBuilder (UserInterface::class)
53
- ->disableOriginalConstructor ()
54
- ->getMock ();
55
- $ this ->userProvider = $ this ->getMockBuilder (UserProviderInterface::class)
56
- ->disableOriginalConstructor ()
57
- ->getMock ();
58
- $ this ->serverService = $ this ->getMockBuilder (OAuth2::class)
59
- ->disableOriginalConstructor ()
60
- ->setMethods (array ('verifyAccessToken ' ))
61
- ->getMock ();
62
- $ this ->userChecker = $ this ->getMockBuilder (UserCheckerInterface::class)
63
- ->disableOriginalConstructor ()
64
- ->getMock ();
52
+ $ this ->user = $ this ->createMock (UserInterface::class);
53
+ $ this ->userProvider = $ this ->createMock (UserProviderInterface::class);
54
+ $ this ->serverService = $ this ->createMock (OAuth2::class);
55
+ $ this ->userChecker = $ this ->createMock (UserCheckerInterface::class);
56
+
65
57
$ this ->provider = new OAuthProvider ($ this ->userProvider , $ this ->serverService , $ this ->userChecker );
66
58
}
67
59
You can’t perform that action at this time.
0 commit comments