| 1 | <?php |
||
| 2 | |||
| 3 | namespace ByTIC\Omnipay\PlatiOnline\Tests; |
||
| 4 | |||
| 5 | use ByTIC\Omnipay\PlatiOnline\Gateway; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Class HelperTest |
||
| 9 | * @package ByTIC\Omnipay\PlatiOnline\Tests |
||
| 10 | */ |
||
| 11 | class GatewayTest extends AbstractTest |
||
| 12 | { |
||
| 13 | public function testTestMode() |
||
| 14 | { |
||
| 15 | $this->assertSame($this->gateway, $this->gateway->setTestMode(false)); |
||
| 16 | $this->assertSame(false, $this->gateway->getTestMode()); |
||
| 17 | |||
| 18 | $this->assertSame($this->gateway, $this->gateway->setTestMode(true)); |
||
| 19 | $this->assertSame(true, $this->gateway->getTestMode()); |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function setUp(): void |
||
| 23 | { |
||
| 24 | parent::setUp(); |
||
| 25 | $this->gateway = new Gateway(); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 26 | } |
||
| 27 | } |
||
| 28 |