Fix Laravel Pint formatting
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
namespace Tests\Unit\Services\Payments;
|
||||
|
||||
use App\Services\Payments\PaymentTransactionService;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Tests\TestCase;
|
||||
@@ -15,13 +15,13 @@ class PaymentTransactionServiceTest extends TestCase
|
||||
|
||||
public function test_create_and_update_transaction(): void
|
||||
{
|
||||
if (!Schema::hasColumn('payment_transactions', 'payment_reference')) {
|
||||
if (! Schema::hasColumn('payment_transactions', 'payment_reference')) {
|
||||
Schema::table('payment_transactions', function (Blueprint $table) {
|
||||
$table->string('payment_reference')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
if (!Schema::hasColumn('payment_transactions', 'is_full_payment')) {
|
||||
if (! Schema::hasColumn('payment_transactions', 'is_full_payment')) {
|
||||
Schema::table('payment_transactions', function (Blueprint $table) {
|
||||
$table->boolean('is_full_payment')->default(0);
|
||||
});
|
||||
@@ -41,7 +41,7 @@ class PaymentTransactionServiceTest extends TestCase
|
||||
'status' => 'Pending',
|
||||
]);
|
||||
|
||||
$service = new PaymentTransactionService();
|
||||
$service = new PaymentTransactionService;
|
||||
$transaction = $service->create([
|
||||
'transaction_id' => 'TXN-1',
|
||||
'payment_id' => 1,
|
||||
|
||||
Reference in New Issue
Block a user