Passed
Push — master ( 80d84f...b77c15 )
by ma
01:46
created

QqTest::testGetRedirectUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
namespace Tests\Gateways;
3
4
use Tests\TestCase;
5
use tinymeng\OAuth2\OAuth;
6
use tinymeng\OAuth2\Helper\ConstCode;
7
8
class QqTest extends TestCase
9
{
10
    protected $oauth;
11
12
    protected function setUp(): void
13
    {
14
        parent::setUp();
15
        $this->oauth = OAuth::qq($this->getConfig('qq'));
16
    }
17
18
    public function testGetRedirectUrl()
19
    {
20
        $url = $this->oauth->getRedirectUrl();
21
        $this->assertContains('https://graph.qq.com/oauth2.0/authorize', $url);
22
    }
23
}