| Total Complexity | 3 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | class WechatTest extends TestCase  | 
            ||
| 9 | { | 
            ||
| 10 | protected $oauth;  | 
            ||
| 11 | |||
| 12 | protected function setUp(): void  | 
            ||
| 13 |     { | 
            ||
| 14 | parent::setUp();  | 
            ||
| 15 |         $this->oauth = OAuth::wechat($this->getConfig('wechat')); | 
            ||
| 16 | }  | 
            ||
| 17 | |||
| 18 | public function testGetRedirectUrl()  | 
            ||
| 19 |     { | 
            ||
| 20 | $url = $this->oauth->getRedirectUrl();  | 
            ||
| 21 |         $this->assertContains('https://open.weixin.qq.com/connect/qrconnect', $url); | 
            ||
| 22 |         $this->assertContains('appid=test_app_id', $url); | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 | public function testUserInfo()  | 
            ||
| 47 | }  | 
            ||
| 48 | }  |