PHPUnit Started (PHPUnit 10.5.63 using PHP 8.1.10 (cli) on WINNT)
Test Runner Configured
Bootstrap Finished (C:\laragon\www\grifo\vendor/autoload.php)
Test Suite Loaded (12 tests)
Event Facade Sealed
Test Runner Started
Test Suite Sorted
Test Runner Execution Started (12 tests)
Test Suite Started (C:\laragon\www\grifo\phpunit.xml, 12 tests)
Test Suite Started (Unit, 1 test)
Test Suite Started (Tests\Unit\ExampleTest, 1 test)
Test Preparation Started (Tests\Unit\ExampleTest::test_that_true_is_true)
Test Prepared (Tests\Unit\ExampleTest::test_that_true_is_true)
Assertion Succeeded (Constraint: is true, Value: true)
Test Passed (Tests\Unit\ExampleTest::test_that_true_is_true)
Test Finished (Tests\Unit\ExampleTest::test_that_true_is_true)
Test Suite Finished (Tests\Unit\ExampleTest, 1 test)
Test Suite Finished (Unit, 1 test)
Test Suite Started (Feature, 11 tests)
Test Suite Started (Tests\Feature\CierresTurnoTotalVentasTest, 1 test)
Test Preparation Started (Tests\Feature\CierresTurnoTotalVentasTest::test_store_uses_the_total_ventas_value_from_the_form)

   PASS  Tests\Unit\ExampleTest
  Ô£ô that true is true                                                    0.01s  
Before Test Method Called (Tests\Feature\CierresTurnoTotalVentasTest::setUp)
Before Test Method Finished:
- Tests\Feature\CierresTurnoTotalVentasTest::setUp
Test Prepared (Tests\Feature\CierresTurnoTotalVentasTest::test_store_uses_the_total_ventas_value_from_the_form)
Assertion Succeeded (Constraint: is identical to 42.5, Value: 42.5)
Assertion Succeeded (Constraint: is identical to 302, Value: 302)
Test Passed (Tests\Feature\CierresTurnoTotalVentasTest::test_store_uses_the_total_ventas_value_from_the_form)
After Test Method Called (Tests\Feature\CierresTurnoTotalVentasTest::tearDown)
After Test Method Finished:
- Tests\Feature\CierresTurnoTotalVentasTest::tearDown
Test Finished (Tests\Feature\CierresTurnoTotalVentasTest::test_store_uses_the_total_ventas_value_from_the_form)
After Last Test Method Called (Tests\Feature\CierresTurnoTotalVentasTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\CierresTurnoTotalVentasTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\CierresTurnoTotalVentasTest, 1 test)
Test Suite Started (Tests\Feature\CuadreCajaStoreTest, 3 tests)
Test Preparation Started (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_creates_registro_salida_rows)

   PASS  Tests\Feature\CierresTurnoTotalVentasTest
  Ô£ô store uses the total ventas value from the form                      0.40s  
Before Test Method Called (Tests\Feature\CuadreCajaStoreTest::setUp)
Before Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::setUp
Test Prepared (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_creates_registro_salida_rows)
Assertion Succeeded (Constraint: is true, Value: true, Message: Expected response status code [201, 301, 302, 303, 307, 308] but received 302.)
Assertion Succeeded (Constraint: is equal to 'http://localhost/cuadre-caja/lista', Value: 'http://localhost/cuadre-caja/lista')
Assertion Succeeded (Constraint: {"id_manguera":1,"id_usuario":1,"id_turno":1,"saldo_inicial":105,"saldo_final":110}, Value: 'registros_salidas')
Test Passed (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_creates_registro_salida_rows)
After Test Method Called (Tests\Feature\CuadreCajaStoreTest::tearDown)
After Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::tearDown
Test Finished (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_creates_registro_salida_rows)
Test Preparation Started (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_zero_amounts)
Before Test Method Called (Tests\Feature\CuadreCajaStoreTest::setUp)
Before Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::setUp
Test Prepared (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_zero_amounts)
Assertion Succeeded (Constraint: is true, Value: true, Message: Session is missing expected key [errors].)
Assertion Succeeded (Constraint: is true, Value: true, Message: Session missing error: mediciones)
Assertion Succeeded (Constraint: Illuminate\Testing\Constraints\CountInDatabase, Value: 'registros_salidas')
Test Passed (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_zero_amounts)
After Test Method Called (Tests\Feature\CuadreCajaStoreTest::tearDown)
After Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::tearDown
Test Finished (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_zero_amounts)
Test Preparation Started (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_duplicate_turno_for_same_date)
Before Test Method Called (Tests\Feature\CuadreCajaStoreTest::setUp)
Before Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::setUp
Test Prepared (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_duplicate_turno_for_same_date)
Assertion Succeeded (Constraint: is true, Value: true, Message: Session is missing expected key [errors].)
Assertion Succeeded (Constraint: is true, Value: true, Message: Session missing error: id_turno)
Assertion Succeeded (Constraint: is true, Value: true, Message: Expected response status code [201, 301, 302, 303, 307, 308] but received 302.)
Test Passed (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_duplicate_turno_for_same_date)
After Test Method Called (Tests\Feature\CuadreCajaStoreTest::tearDown)
After Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::tearDown
Test Finished (Tests\Feature\CuadreCajaStoreTest::test_store_cuadre_caja_rejects_duplicate_turno_for_same_date)
After Last Test Method Called (Tests\Feature\CuadreCajaStoreTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\CuadreCajaStoreTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\CuadreCajaStoreTest, 3 tests)
Test Suite Started (Tests\Feature\DiferenciasIndexFiltersTest, 1 test)
Test Preparation Started (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)

   PASS  Tests\Feature\CuadreCajaStoreTest
  Ô£ô store cuadre caja creates registro salida rows                       2.69s  
  Ô£ô store cuadre caja rejects zero amounts                               0.08s  
  Ô£ô store cuadre caja rejects duplicate turno for same date              0.07s  
Before Test Method Called (Tests\Feature\DiferenciasIndexFiltersTest::setUp)
Before Test Method Finished:
- Tests\Feature\DiferenciasIndexFiltersTest::setUp
Test Prepared (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
Assertion Failed (Constraint: is identical to 200, Value: 500, Message: Expected response status code [200] but received 500.)
Test Failed (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
Expected response status code [200] but received 500.
Failed asserting that 500 is identical to 200.
After Test Method Called (Tests\Feature\DiferenciasIndexFiltersTest::tearDown)
After Test Method Finished:
- Tests\Feature\DiferenciasIndexFiltersTest::tearDown
Test Finished (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
After Last Test Method Called (Tests\Feature\DiferenciasIndexFiltersTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\DiferenciasIndexFiltersTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\DiferenciasIndexFiltersTest, 1 test)
Test Suite Started (Tests\Feature\ExampleTest, 1 test)
Test Preparation Started (Tests\Feature\ExampleTest::test_the_application_returns_a_successful_response)

   FAIL  Tests\Feature\DiferenciasIndexFiltersTest
  Ô¿» diferencias index filters by date user and turno                     0.40s  
Before Test Method Called (Tests\Feature\ExampleTest::setUp)
Before Test Method Finished:
- Tests\Feature\ExampleTest::setUp
Test Prepared (Tests\Feature\ExampleTest::test_the_application_returns_a_successful_response)
Assertion Succeeded (Constraint: is identical to 200, Value: 200, Message: Expected response status code [200] but received 200.)
Test Passed (Tests\Feature\ExampleTest::test_the_application_returns_a_successful_response)
After Test Method Called (Tests\Feature\ExampleTest::tearDown)
After Test Method Finished:
- Tests\Feature\ExampleTest::tearDown
Test Finished (Tests\Feature\ExampleTest::test_the_application_returns_a_successful_response)
After Last Test Method Called (Tests\Feature\ExampleTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\ExampleTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\ExampleTest, 1 test)
Test Suite Started (Tests\Feature\PreciosDiaValidationTest, 1 test)
Test Preparation Started (Tests\Feature\PreciosDiaValidationTest::test_store_rejects_zero_or_negative_prices)

   PASS  Tests\Feature\ExampleTest
  Ô£ô the application returns a successful response                        0.05s  
Before Test Method Called (Tests\Feature\PreciosDiaValidationTest::setUp)
Before Test Method Finished:
- Tests\Feature\PreciosDiaValidationTest::setUp
Test Prepared (Tests\Feature\PreciosDiaValidationTest::test_store_rejects_zero_or_negative_prices)
Assertion Succeeded (Constraint: is true, Value: true, Message: Session is missing expected key [errors].)
Assertion Succeeded (Constraint: is true, Value: true, Message: Session missing error: precio_turno_manana)
Test Passed (Tests\Feature\PreciosDiaValidationTest::test_store_rejects_zero_or_negative_prices)
After Test Method Called (Tests\Feature\PreciosDiaValidationTest::tearDown)
After Test Method Finished:
- Tests\Feature\PreciosDiaValidationTest::tearDown
Test Finished (Tests\Feature\PreciosDiaValidationTest::test_store_rejects_zero_or_negative_prices)
After Last Test Method Called (Tests\Feature\PreciosDiaValidationTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\PreciosDiaValidationTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\PreciosDiaValidationTest, 1 test)
Test Suite Started (Tests\Feature\RegistroSalidaPrecioTest, 1 test)
Test Preparation Started (Tests\Feature\RegistroSalidaPrecioTest::test_store_uses_selected_turno_price_for_precio_galon)

   PASS  Tests\Feature\PreciosDiaValidationTest
  Ô£ô store rejects zero or negative prices                                0.03s  
Before Test Method Called (Tests\Feature\RegistroSalidaPrecioTest::setUp)
Before Test Method Finished:
- Tests\Feature\RegistroSalidaPrecioTest::setUp
Test Prepared (Tests\Feature\RegistroSalidaPrecioTest::test_store_uses_selected_turno_price_for_precio_galon)
Assertion Succeeded (Constraint: is true, Value: true, Message: Expected response status code [201, 301, 302, 303, 307, 308] but received 302.)
Assertion Succeeded (Constraint: is equal to 'http://localhost/registros_salidas', Value: 'http://localhost/registros_salidas')
Assertion Succeeded (Constraint: is not null, Value: {enable export of objects to see this value})
Assertion Succeeded (Constraint: is identical to '12.50', Value: '12.50')
Test Passed (Tests\Feature\RegistroSalidaPrecioTest::test_store_uses_selected_turno_price_for_precio_galon)
After Test Method Called (Tests\Feature\RegistroSalidaPrecioTest::tearDown)
After Test Method Finished:
- Tests\Feature\RegistroSalidaPrecioTest::tearDown
Test Finished (Tests\Feature\RegistroSalidaPrecioTest::test_store_uses_selected_turno_price_for_precio_galon)
After Last Test Method Called (Tests\Feature\RegistroSalidaPrecioTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\RegistroSalidaPrecioTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\RegistroSalidaPrecioTest, 1 test)
Test Suite Started (Tests\Feature\RegistroSalidaSaldoInicialTest, 1 test)
Test Preparation Started (Tests\Feature\RegistroSalidaSaldoInicialTest::test_store_uses_last_saldo_final_as_saldo_inicial_and_computes_total)

   PASS  Tests\Feature\RegistroSalidaPrecioTest
  Ô£ô store uses selected turno price for precio galon                     0.10s  
Before Test Method Called (Tests\Feature\RegistroSalidaSaldoInicialTest::setUp)
Before Test Method Finished:
- Tests\Feature\RegistroSalidaSaldoInicialTest::setUp
Test Prepared (Tests\Feature\RegistroSalidaSaldoInicialTest::test_store_uses_last_saldo_final_as_saldo_inicial_and_computes_total)
Assertion Succeeded (Constraint: is true, Value: true, Message: Expected response status code [201, 301, 302, 303, 307, 308] but received 302.)
Assertion Succeeded (Constraint: is equal to 'http://localhost/registros_salidas', Value: 'http://localhost/registros_salidas')
Assertion Succeeded (Constraint: is not null, Value: {enable export of objects to see this value})
Assertion Succeeded (Constraint: is identical to '105.000', Value: '105.000')
Assertion Succeeded (Constraint: is identical to '110.000', Value: '110.000')
Assertion Succeeded (Constraint: is identical to '62.50', Value: '62.50')
Test Passed (Tests\Feature\RegistroSalidaSaldoInicialTest::test_store_uses_last_saldo_final_as_saldo_inicial_and_computes_total)
After Test Method Called (Tests\Feature\RegistroSalidaSaldoInicialTest::tearDown)
After Test Method Finished:
- Tests\Feature\RegistroSalidaSaldoInicialTest::tearDown
Test Finished (Tests\Feature\RegistroSalidaSaldoInicialTest::test_store_uses_last_saldo_final_as_saldo_inicial_and_computes_total)
After Last Test Method Called (Tests\Feature\RegistroSalidaSaldoInicialTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\RegistroSalidaSaldoInicialTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\RegistroSalidaSaldoInicialTest, 1 test)
Test Suite Started (Tests\Feature\ReportesExportTest, 1 test)
Test Preparation Started (Tests\Feature\ReportesExportTest::test_export_route_returns_excel_response_for_authenticated_user)

   PASS  Tests\Feature\RegistroSalidaSaldoInicialTest
  Ô£ô store uses last saldo final as saldo inicial and computes total      0.09s  
Before Test Method Called (Tests\Feature\ReportesExportTest::setUp)
Before Test Method Finished:
- Tests\Feature\ReportesExportTest::setUp
Test Prepared (Tests\Feature\ReportesExportTest::test_export_route_returns_excel_response_for_authenticated_user)
Assertion Succeeded (Constraint: is identical to 200, Value: 200, Message: Expected response status code [200] but received 200.)
Assertion Succeeded (Constraint: is true, Value: true, Message: Header [content-type] not present on response.)
Assertion Succeeded (Constraint: is equal to 'application/vnd.ms-excel; charset=UTF-8', Value: 'application/vnd.ms-excel; charset=UTF-8', Message: Header [content-type] was found, but value [application/vnd.ms-excel; charset=UTF-8] does not match [application/vnd.ms-excel; charset=UTF-8].)
Assertion Succeeded (Constraint: contains "attachment; filename="reporte_" [ASCII](length: 30), Value: 'attachment; filename="reporte_20260603_220453.xls"')
Assertion Succeeded (Constraint: contains "TOTAL GENERAL" [ASCII](length: 13), Value: '<table border="1">\r\n
    <thead>\r\n
        <tr>\r\n
            <th>Fecha</th>\r\n
            <th>Manguera</th>\r\n
            <th>Tipo combustible</th>\r\n
            <th>Turno</th>\r\n
            <th>Usuario</th>\r\n
            <th>Saldo inicial</th>\r\n
            <th>Saldo final</th>\r\n
            <th>Galones vendidos</th>\r\n
            <th>Precio gal├│n</th>\r\n
            <th>Total</th>\r\n
        </tr>\r\n
    </thead>\r\n
    <tbody>\r\n
                    <tr>\r\n
                <td colspan="10">No hay datos para el rango seleccionado.</td>\r\n
            </tr>\r\n
            </tbody>\r\n
    <tfoot>\r\n
        <tr>\r\n
            <td colspan="9"><strong>TOTAL GENERAL</strong></td>\r\n
            <td><strong>0.00</strong></td>\r\n
        </tr>\r\n
    </tfoot>\r\n
</table>\r\n
\r\n
')
Test Passed (Tests\Feature\ReportesExportTest::test_export_route_returns_excel_response_for_authenticated_user)
After Test Method Called (Tests\Feature\ReportesExportTest::tearDown)
After Test Method Finished:
- Tests\Feature\ReportesExportTest::tearDown
Test Finished (Tests\Feature\ReportesExportTest::test_export_route_returns_excel_response_for_authenticated_user)
After Last Test Method Called (Tests\Feature\ReportesExportTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\ReportesExportTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\ReportesExportTest, 1 test)
Test Suite Started (Tests\Feature\ReportesTotalVentaCalculadoTest, 1 test)
Test Preparation Started (Tests\Feature\ReportesTotalVentaCalculadoTest::test_build_reporte_data_calculates_total_venta_calculado)

   PASS  Tests\Feature\ReportesExportTest
  Ô£ô export route returns excel response for authenticated user           0.08s  
Before Test Method Called (Tests\Feature\ReportesTotalVentaCalculadoTest::setUp)
Before Test Method Finished:
- Tests\Feature\ReportesTotalVentaCalculadoTest::setUp
Test Prepared (Tests\Feature\ReportesTotalVentaCalculadoTest::test_build_reporte_data_calculates_total_venta_calculado)
Assertion Succeeded (Constraint: is identical to 62.5, Value: 62.5)
Assertion Succeeded (Constraint: is identical to 62.5, Value: 62.5)
Test Passed (Tests\Feature\ReportesTotalVentaCalculadoTest::test_build_reporte_data_calculates_total_venta_calculado)
After Test Method Called (Tests\Feature\ReportesTotalVentaCalculadoTest::tearDown)
After Test Method Finished:
- Tests\Feature\ReportesTotalVentaCalculadoTest::tearDown
Test Finished (Tests\Feature\ReportesTotalVentaCalculadoTest::test_build_reporte_data_calculates_total_venta_calculado)
After Last Test Method Called (Tests\Feature\ReportesTotalVentaCalculadoTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\ReportesTotalVentaCalculadoTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\ReportesTotalVentaCalculadoTest, 1 test)
Test Suite Finished (Feature, 11 tests)
Test Suite Finished (C:\laragon\www\grifo\phpunit.xml, 12 tests)
Test Runner Execution Finished

   PASS  Tests\Feature\ReportesTotalVentaCalculadoTest
  Ô£ô build reporte data calculates total venta calculado                  0.08s  
  ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ  
   FAILED  Tests\Feature\DiferenciasIndexFiltersTest > diferencias index filÔÇª   
  Expected response status code [200] but received 500.
Failed asserting that 500 is identical to 200.

  at tests\Feature\DiferenciasIndexFiltersTest.php:55
     51Ôûò 
     52Ôûò         $response = $this->actingAs(\App\Models\User::find($usuarioId))
     53Ôûò             ->get('/diferencias?fecha_desde=' . now()->subDays(2)->toDateString() . '&fecha_hasta=' . now()->toDateString() . '&id_turno=' . $turnoId . '&id_usuario=' . $usuarioId);
     54Ôûò 
  Ô×£  55Ôûò         $response->assertStatus(200);
     56Ôûò         $response->assertSee('Filtro');
     57Ôûò     }
     58Ôûò }
     59Ôûò


  Tests:    1 failed, 11 passed (35 assertions)
  Duration: 4.48s

Test Runner Finished
PHPUnit Finished (Shell Exit Code: 1)
