Completed
Push — master ( 4c45e0...1a7b7a )
by Дмитрий
02:22
created

SteamTest::testParseUserIdFromIdentity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
dl 0
loc 16
rs 9.9666
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace Test\OpenID\Provider;
7
8
class SteamTest extends AbstractProviderTestCase
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected function getProviderClassName()
14
    {
15
        return \SocialConnect\OpenID\Provider\Steam::class;
16
    }
17
18
    public function testParseUserIdFromIdentity()
19
    {
20
        $expectedUserId = 76561198066894048;
21
        $provider = $this->getProvider();
22
23
        $result = parent::callProtectedMethod(
24
            $provider,
25
            'parseUserIdFromIdentity',
26
            [
27
                'http://steamcommunity.com/openid/id/76561198066894048'
28
            ]
29
        );
30
31
        parent::assertEquals(
32
            $expectedUserId,
33
            $result
34
        );
35
    }
36
}
37