/home/techb158/ileadtechnology.com/SSM/vendor/razorpay/razorpay/tests
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/razorpay/razorpay/tests/RazorpayTest.php (838B)
api = new Api($_SERVER['KEY_ID'], $_SERVER['KEY_SECRET']);
}
public function testApiConfig()
{
$this->assertTrue($this->api->payment !== false);
}
public function testPayments()
{
$data = $this->api->payment->all();
//
// $data Should be an associative array
//
$this->assertTrue(is_array($data->toArray()));
$this->assertTrue(is_array($data['items']));
}
public function testHeaders()
{
Request::addHeader('DEMO', 1);
$headers = Request::getHeaders();
$this->assertEquals($headers['DEMO'], 1);
}
}