public function testPermanent() { $permanent = $this->thePay->createPermanent('data', 'desc', 'localhost'); $this->assertTrue($permanent->isOk()); $this->assertNull($permanent->getErrorMessage()); $this->assertTrue(is_array($permanent->getMethods())); foreach ($permanent->getMethods() as $method) { $this->assertInstanceOf(\TpPermanentPaymentResponseMethod::class, $method); } }
public function testIsTest() { $this->assertTrue($this->thePay->isTest()); }
public function testRender() { $this->assertNotEmpty($this->thePay->createSender(400)->render()); }