Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function testValid() |
||
52 | { |
||
53 | $identity = Identity::findIdentity('user1'); |
||
54 | Yii::$app->user->login($identity); |
||
55 | Yii::$app->user->switchIdentityLoggedIn(); |
||
56 | |||
57 | $result = QrCodeWidget::widget([ |
||
58 | 'label' => 'vxm', |
||
59 | 'image' => 'https://abc.com', |
||
60 | 'issuer' => 'Test' |
||
61 | ]); |
||
62 | $this->assertNotEmpty($result); |
||
63 | } |
||
64 | |||
66 |