File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,13 @@ public function testShouldReturnTrack2()
358
358
$ this ->assertEquals (';4242424242424242=15201269999944401? ' , $ actual );
359
359
}
360
360
361
+ public function testShouldReturnNoTrack ()
362
+ {
363
+ $ this ->card ->setTracks (null );
364
+ $ actual = $ this ->card ->getTrack2 ();
365
+ $ this ->assertNull ($ actual );
366
+ }
367
+
361
368
public function testIssueNumber ()
362
369
{
363
370
$ this ->card ->setIssueNumber ('12 ' );
Original file line number Diff line number Diff line change 7
7
8
8
class AbstractResponseTest extends TestCase
9
9
{
10
+ /** @var AbstractResponse */
11
+ protected $ response ;
12
+
10
13
public function setUp ()
11
14
{
12
15
$ this ->response = m::mock ('\Omnipay\Common\Message\AbstractResponse ' )->makePartial ();
@@ -32,6 +35,9 @@ public function testDefaultMethods()
32
35
$ this ->assertNull ($ this ->response ->getTransactionReference ());
33
36
$ this ->assertNull ($ this ->response ->getMessage ());
34
37
$ this ->assertNull ($ this ->response ->getCode ());
38
+ $ this ->assertNull ($ this ->response ->getRedirectUrl ());
39
+ $ this ->assertEquals ('GET ' , $ this ->response ->getRedirectMethod ());
40
+ $ this ->assertEquals ([], $ this ->response ->getRedirectData ());
35
41
}
36
42
37
43
/**
You can’t perform that action at this time.
0 commit comments