BaoKimBankWidgetTest::gatewayId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/yiiviet/yii2-payment
4
 * @copyright Copyright (c) 2017 Yii Viet
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
9
namespace yiiviet\tests\unit\payment;
10
11
/**
12
 * Lớp BaoKimBankWidgetTest
13
 *
14
 * @author Vuong Minh <[email protected]>
15
 * @since 1.0.3
16
 */
17
class BaoKimBankWidgetTest extends BankWidgetTest
18
{
19
    /**
20
     * @var \yiiviet\payment\baokim\PaymentGateway
21
     */
22
    public $gateway;
23
24
    public static function gatewayId(): string
25
    {
26
        return 'BK';
27
    }
28
29
    public function testBankLogo()
30
    {
31
        $widget = $this->createWidget();
32
33
        $this->assertNotEmpty($widget->provider->getBankLogo(67));
34
    }
35
}
36