- Created ExampleTest and RoutesTest for basic application response and route testing. - Implemented IsolatedDatabaseTestCase for isolated database testing. - Added unit tests for various models and services including Contract, CPE, and LeadDetail. - Developed request validation tests for CreateClientRequest, UpdateClientRequest, and ContractRequest. - Introduced Vite configuration for asset management in the Laravel application.
32 lines
640 B
PHP
32 lines
640 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use App\Http\Controllers\EmailTestController;
|
|
|
|
class SendTestEmail extends Command
|
|
{
|
|
/**
|
|
* Nome do comando Artisan
|
|
*/
|
|
protected $signature = 'email:send-test';
|
|
|
|
/**
|
|
* Descrição do comando
|
|
*/
|
|
protected $description = 'Envia o e-mail de teste automaticamente';
|
|
|
|
/**
|
|
* Executa o comando
|
|
*/
|
|
public function handle()
|
|
{
|
|
try {
|
|
(new EmailTestController)->sendTestEmail();
|
|
} catch (\Throwable $e) {
|
|
$this->error('Erro ao enviar e-mail: ' . $e->getMessage());
|
|
}
|
|
}
|
|
}
|