Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function testMissingLabel() |
||
36 | { |
||
37 | $identity = Identity::findIdentity('user1'); |
||
38 | Yii::$app->user->login($identity); |
||
39 | Yii::$app->user->switchIdentityLoggedIn(); |
||
40 | |||
41 | try { |
||
42 | QrCodeWidget::widget(); |
||
43 | } catch (\Throwable $throwable) { |
||
44 | $this->assertTrue($throwable instanceof \Assert\InvalidArgumentException); |
||
45 | } |
||
46 | } |
||
47 | |||
66 |