23 lines
823 B
PHP
23 lines
823 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||
|
|
use Illuminate\Support\Facades\DB;
|
||
|
|
use Tests\Concerns\SharesSupplierPdo;
|
||
|
|
|
||
|
|
uses(DatabaseTransactions::class, SharesSupplierPdo::class);
|
||
|
|
|
||
|
|
it('строка jivosite удалена миграцией', function () {
|
||
|
|
DB::connection('pgsql_supplier')->table('external_service_balances')->updateOrInsert(
|
||
|
|
['service_key' => 'jivosite'],
|
||
|
|
['light' => 'red', 'ok' => false, 'currency' => 'RUB', 'updated_at' => now(), 'created_at' => now()],
|
||
|
|
);
|
||
|
|
|
||
|
|
(include database_path('migrations/2026_07_16_120000_delete_jivosite_balance_row.php'))->up();
|
||
|
|
|
||
|
|
$exists = DB::connection('pgsql_supplier')->table('external_service_balances')
|
||
|
|
->where('service_key', 'jivosite')->exists();
|
||
|
|
expect($exists)->toBeFalse();
|
||
|
|
});
|