Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
lms-api /
tests /
Unit /
Trek /
[ HOME SHELL ]
Name
Size
Permission
Action
BookingTest.php
4.31
KB
-rw-rw-r--
EmailTest.php
2.07
KB
-rw-rw-r--
GeneratePdfTest.php
3.05
KB
-rw-rw-r--
PaymentTest.php
2.86
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : PaymentTest.php
<?php namespace Tests\Unit\Trek; use App\Modules\Trek\Repositories\PaymentRepository; use App\Traits\CommonTrait; use Tests\TestCase; class PaymentTest extends TestCase { use CommonTrait; public function setUp() { parent::setUp(); $this->paymentRepo = new PaymentRepository(); } /** @test */ public function set_stripe_keys_should_return_null() { $this->assertNull($this->set_stripe_key()); } /** @test */ public function correct_card_data_should_return_true_with_token_while_creating_token() { $data = [ "card" => [ "cvc" => "124", "exp_month" => "12", "exp_year" => "2019", "name" => "test", "number" => "4242424242424242" ] ]; $response = $this->paymentRepo->createCardTokenTest($data); $this->assertEquals(200, $response['code']); $this->assertEquals(true, $response['success']); $this->assertNotEmpty($response['data']); } /** @test */ public function wrong_card_data_should_return_false_while_creating_token() { $data = [ "card" => [ "cvc" => "124", "exp_month" => "12", "exp_year" => "2019", "name" => "test", "number" => "4242424" ] ]; $response = $this->paymentRepo->createCardTokenTest($data); $this->assertEquals(500, $response['code']); $this->assertEquals(false, $response['success']); } private function create_valid_token() { $data = [ "card" => [ "cvc" => "124", "exp_month" => "12", "exp_year" => "2019", "name" => "test", "number" => "4242424242424242" ] ]; $response = $this->paymentRepo->createCardTokenTest($data); return $response; } /** @test */ public function correct_data_should_return_true_with_charge_object_while_creating_charge() { $res = $this->create_valid_token(); info('$res:' . json_encode($res)); $data1 = [ "charge" => 100, "token" => $res['data'] ]; $response = $this->paymentRepo->createChargeTest($data1); $this->assertEquals(200, $response['code']); $this->assertEquals(true, $response['success']); $this->assertNotEmpty($response['data']); } /** @test */ public function wrong_data_should_return_false_while_creating_charge() { $res = $this->create_valid_token(); $data1 = [ "token" => $res['data'] ]; $response = $this->paymentRepo->createChargeTest($data1); $this->assertEquals(500, $response['code']); $this->assertEquals(false, $response['success']); } }
Close