Aplicar Pint aos 18 ficheiros que falhavam lint:check
Só formatação. 16 já falhavam em fase5-producao; 2 vêm de c9bd6db.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -562,16 +562,16 @@ final class WarehouseReturnIntegrationTest extends TestCase
|
||||
});
|
||||
$first = $this->getJson('/api/stock-returns')->assertOk()->assertJsonPath('pagination.total', 51)->assertJsonPath('pagination.last_page', 3)->assertJsonCount(25, 'rows')->json('rows');
|
||||
$capture = false;
|
||||
$this->assertLessThanOrEqual(4,count($queries));
|
||||
$second = $this->getJson('/api/stock-returns?page=2')->assertOk()->assertJsonCount(25,'rows')->json('rows');
|
||||
$this->assertEmpty(array_intersect(array_column($first,'id'),array_column($second,'id')));
|
||||
$this->assertGreaterThan($second[0]['id'],$first[24]['id']);
|
||||
$this->getJson('/api/stock-returns?page=3')->assertOk()->assertJsonCount(1,'rows');
|
||||
$this->assertLessThanOrEqual(4, count($queries));
|
||||
$second = $this->getJson('/api/stock-returns?page=2')->assertOk()->assertJsonCount(25, 'rows')->json('rows');
|
||||
$this->assertEmpty(array_intersect(array_column($first, 'id'), array_column($second, 'id')));
|
||||
$this->assertGreaterThan($second[0]['id'], $first[24]['id']);
|
||||
$this->getJson('/api/stock-returns?page=3')->assertOk()->assertJsonCount(1, 'rows');
|
||||
$this->actingAs($this->f['receiver']);
|
||||
$this->confirm($p)->assertOk();
|
||||
$this->getJson('/api/stock-returns?state=prepared')->assertOk()->assertJsonPath('pagination.total',50);
|
||||
$this->getJson('/api/stock-returns?state=confirmed')->assertOk()->assertJsonPath('pagination.total',1);
|
||||
$this->assertSame(8000,$this->balance());
|
||||
file_put_contents((string) getenv('STOCK_RECEIPT_ROOT').'/return-history-metrics.json',json_encode(['fixture_records' => 51, 'page_size' => 25, 'supply_record_selects_for_page' => count($queries), 'pages_disjoint' => true, 'state_filters_cover_latest_versions' => true, 'not_a_load_capacity_benchmark' => true],JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR));
|
||||
$this->getJson('/api/stock-returns?state=prepared')->assertOk()->assertJsonPath('pagination.total', 50);
|
||||
$this->getJson('/api/stock-returns?state=confirmed')->assertOk()->assertJsonPath('pagination.total', 1);
|
||||
$this->assertSame(8000, $this->balance());
|
||||
file_put_contents((string) getenv('STOCK_RECEIPT_ROOT').'/return-history-metrics.json', json_encode(['fixture_records' => 51, 'page_size' => 25, 'supply_record_selects_for_page' => count($queries), 'pages_disjoint' => true, 'state_filters_cover_latest_versions' => true, 'not_a_load_capacity_benchmark' => true], JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user