Skip to content

Commit 791ee3b

Browse files
committed
Added extra tests to test getters, hooray.
1 parent 169888d commit 791ee3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/GatewayTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ public function testFetchTransactionParameters(): void
6666
$setter = 'set'.ucfirst($this->camelCase($key));
6767
$value = uniqid();
6868
$this->gateway->$setter($value);
69+
$this->assertSame($value, $this->gateway->$getter());
6970

7071
// request should have matching property, with correct value
7172
$request = $this->gateway->fetchTransaction();
72-
$this->assertSame($value, $request->$getter());
73+
$this->assertSame($this->gateway->$getter(), $request->$getter());
7374
}
7475
}
7576

0 commit comments

Comments
 (0)