Code Duplication    Length = 9-12 lines in 3 locations

tests/BaoKimTest.php 1 location

@@ 88-96 (lines=9) @@
85
     * @expectedException \yii\base\InvalidConfigException
86
     * @expectedExceptionMessage cannot be blank
87
     */
88
    public function testQueryDR()
89
    {
90
        // Valid
91
        $responseData = $this->gateway->queryDR(['transaction_id' => 1]);
92
        $this->assertTrue($responseData->getIsOk());
93
94
        // Throws
95
        $this->gateway->queryDR([]);
96
    }
97
98
    public function testGetMerchantData()
99
    {

tests/OnePayTest.php 2 locations

@@ 89-100 (lines=12) @@
86
     * @expectedException \yii\base\InvalidConfigException
87
     * @expectedExceptionMessage cannot be blank
88
     */
89
    public function testQueryDR()
90
    {
91
        // Valid
92
        $responseData = $this->gateway->queryDR([
93
            'MerchTxnRef' => 1
94
        ]);
95
96
        $this->assertTrue($responseData->getIsOk());
97
98
        // Throws
99
        $this->gateway->queryDR([]);
100
    }
101
102
    /**
103
     * @expectedException \yii\base\InvalidConfigException
@@ 106-117 (lines=12) @@
103
     * @expectedException \yii\base\InvalidConfigException
104
     * @expectedExceptionMessage cannot be blank
105
     */
106
    public function testQueryDRInternational()
107
    {
108
        // Valid
109
        $responseData = $this->gateway->queryDRInternational([
110
            'MerchTxnRef' => 1
111
        ]);
112
113
        $this->assertTrue($responseData->getIsOk());
114
115
        // Throws
116
        $this->gateway->queryDR([]);
117
    }
118
119
    public function testVerifyRequestPurchaseSuccess()
120
    {