GatewayTest::testPurchaseRequestEndpointUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Paytic\Omnipay\Paylike\Tests;
4
5
use Paytic\Omnipay\Paylike\Gateway;
6
use Paytic\Omnipay\Paylike\Message\PurchaseRequest;
7
8
/**
9
 * Class HelperTest
10
 * @package Paytic\Omnipay\Paylike\Tests
11
 */
12
class GatewayTest extends AbstractTest
13
{
14
    public function test_getApiUrl()
15
    {
16
        $gateway = new Gateway();
17
18
        // INITIAL TEST MODE IS TRUE
19
        self::assertEquals(
20
            'https://api.Paylike.com',
21
            $gateway->getApiUrl()
22
        );
23
    }
24
25
    public function testPurchaseRequestEndpointUrl()
26
    {
27
        $gateway = new Gateway();
28
29
        $request = $gateway->purchase();
30
        self::assertInstanceOf(PurchaseRequest::class, $request);
31
    }
32
}
33