Test Failed
Branch master (3f2e80)
by Gabriel
03:43 queued 01:39
created

GatewayTest::testPurchaseRequestEndpointUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace ByTIC\Omnipay\Paylike\Tests;
4
5
use ByTIC\Omnipay\Paylike\Gateway;
6
use ByTIC\Omnipay\Paylike\Message\PurchaseRequest;
7
8
/**
9
 * Class HelperTest
10
 * @package ByTIC\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