audit(offers): record acceptance blockers before homologation

This commit is contained in:
2026-11-14 18:25:09 +02:00
parent 528a2597ed
commit ed2fd86f6b
10 changed files with 360 additions and 1 deletions
@@ -0,0 +1 @@
{"tool":"phpunit","result":"failed","tests":2,"passed":1,"assertions":11,"duration_ms":23058,"failed":1,"failures":[{"test":"Tests\\Feature\\OfferInvestmentAcceptanceAuditTest::test_saved_offer_reuses_its_description_in_the_existing_investment_context","file":"C:\\laragon\\www\\portal-investidor-qa-editorial-20261113\\tests\\Feature\\OfferInvestmentAcceptanceAuditTest.php","line":43,"message":"Write once/read always: the existing description must not disappear at the investment-context boundary.\nFailed asserting that null is identical to 'Existing company description to reuse once in investment preparation.'."}]}
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="Tests\Feature\OfferInvestmentAcceptanceAuditTest" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OfferInvestmentAcceptanceAuditTest.php" tests="2" assertions="11" errors="0" failures="1" skipped="0" time="23.049038">
<testcase name="test_saved_offer_reuses_its_description_in_the_existing_investment_context" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OfferInvestmentAcceptanceAuditTest.php" line="37" class="Tests\Feature\OfferInvestmentAcceptanceAuditTest" classname="Tests.Feature.OfferInvestmentAcceptanceAuditTest" assertions="4" time="17.378447">
<failure type="PHPUnit\Framework\ExpectationFailedException">Tests\Feature\OfferInvestmentAcceptanceAuditTest::test_saved_offer_reuses_its_description_in_the_existing_investment_context&#13;
Write once/read always: the existing description must not disappear at the investment-context boundary.
Failed asserting that null is identical to 'Existing company description to reuse once in investment preparation.'.
&#13;
C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OfferInvestmentAcceptanceAuditTest.php:43</failure>
</testcase>
<testcase name="test_native_context_options_do_not_disclose_another_owners_private_offer" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OfferInvestmentAcceptanceAuditTest.php" line="47" class="Tests\Feature\OfferInvestmentAcceptanceAuditTest" classname="Tests.Feature.OfferInvestmentAcceptanceAuditTest" assertions="7" time="5.670591"/>
</testsuite>
</testsuites>
@@ -0,0 +1,7 @@
{
"format_failures": 61,
"baseline_paths": 61,
"intersection_with_module_delta": [],
"all_git_files_unchanged_since_phase1_closure": true,
"only_matrix_row_changed": "RF-MN-003"
}
@@ -0,0 +1 @@
{"tool":"phpunit","result":"passed","tests":14,"passed":14,"assertions":227,"duration_ms":22125}
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="CLI Arguments" tests="14" assertions="227" errors="0" failures="0" skipped="0" time="22.109963">
<testsuite name="Tests\Feature\OpportunityManagementTest" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityManagementTest.php" tests="3" assertions="46" errors="0" failures="0" skipped="0" time="11.864628">
<testcase name="test_installation_requires_management_permission_and_current_proofs" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityManagementTest.php" line="20" class="Tests\Feature\OpportunityManagementTest" classname="Tests.Feature.OpportunityManagementTest" assertions="6" time="9.826727"/>
<testcase name="test_incomplete_draft_recovers_and_soft_delete_restore_preserves_identity" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityManagementTest.php" line="32" class="Tests\Feature\OpportunityManagementTest" classname="Tests.Feature.OpportunityManagementTest" assertions="21" time="1.154303"/>
<testcase name="test_closed_version_edits_do_not_change_public_values_classification_or_relations" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityManagementTest.php" line="60" class="Tests\Feature\OpportunityManagementTest" classname="Tests.Feature.OpportunityManagementTest" assertions="19" time="0.883598"/>
</testsuite>
<testsuite name="Tests\Feature\OpportunitySearchTest" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" tests="6" assertions="112" errors="0" failures="0" skipped="0" time="6.293386">
<testcase name="test_one_park_selector_matches_public_associations_not_proximity_or_shared_territory" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" line="26" class="Tests\Feature\OpportunitySearchTest" classname="Tests.Feature.OpportunitySearchTest" assertions="9" time="1.627457"/>
<testcase name="test_historical_and_current_preparation_with_equal_numbers_are_not_equivalent" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" line="38" class="Tests\Feature\OpportunitySearchTest" classname="Tests.Feature.OpportunitySearchTest" assertions="6" time="0.509868"/>
<testcase name="test_amount_requires_currency_and_combines_with_sector_location_and_modality" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" line="47" class="Tests\Feature\OpportunitySearchTest" classname="Tests.Feature.OpportunitySearchTest" assertions="10" time="0.710202"/>
<testcase name="test_zone_options_are_not_filtered_by_opportunity_text_or_modality" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" line="58" class="Tests\Feature\OpportunitySearchTest" classname="Tests.Feature.OpportunitySearchTest" assertions="7" time="0.531233"/>
<testcase name="test_list_map_and_export_keep_the_same_public_park_results" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" line="67" class="Tests\Feature\OpportunitySearchTest" classname="Tests.Feature.OpportunitySearchTest" assertions="16" time="1.179871"/>
<testcase name="test_public_catalogue_consumers_keep_their_own_result_collections" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunitySearchTest.php" line="80" class="Tests\Feature\OpportunitySearchTest" classname="Tests.Feature.OpportunitySearchTest" assertions="64" time="1.734754"/>
</testsuite>
<testsuite name="Tests\Feature\OpportunityResourcesTest" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityResourcesTest.php" tests="5" assertions="69" errors="0" failures="0" skipped="0" time="3.951950">
<testcase name="test_encrypted_original_scan_pending_recovery_replacement_and_logical_lifecycle" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityResourcesTest.php" line="47" class="Tests\Feature\OpportunityResourcesTest" classname="Tests.Feature.OpportunityResourcesTest" assertions="24" time="0.989391"/>
<testcase name="test_multiple_locations_without_coordinates_and_invalid_hierarchy_and_geometry" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityResourcesTest.php" line="82" class="Tests\Feature\OpportunityResourcesTest" classname="Tests.Feature.OpportunityResourcesTest" assertions="14" time="0.667104"/>
<testcase name="test_foreign_country_rejects_mozambican_hierarchy_without_changing_the_saved_draft" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityResourcesTest.php" line="100" class="Tests\Feature\OpportunityResourcesTest" classname="Tests.Feature.OpportunityResourcesTest" assertions="20" time="1.242190"/>
<testcase name="test_invalid_upload_and_cross_opportunity_links_do_not_create_resources" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityResourcesTest.php" line="132" class="Tests\Feature\OpportunityResourcesTest" classname="Tests.Feature.OpportunityResourcesTest" assertions="7" time="0.641653"/>
<testcase name="test_image_processing_is_explicit_and_every_derivative_requires_its_own_scan" file="C:\laragon\www\portal-investidor-qa-editorial-20261113\tests\Feature\OpportunityResourcesTest.php" line="141" class="Tests\Feature\OpportunityResourcesTest" classname="Tests.Feature.OpportunityResourcesTest" assertions="4" time="0.411613"/>
</testsuite>
</testsuite>
</testsuites>
@@ -0,0 +1,187 @@
{
"candidate": "528a2597",
"phase_ancestry": {
"1f2990e4": true,
"6e302db6": true,
"91c18573": true,
"7691cab3": true,
"e431de8b": true,
"528a2597": true
},
"hash_checks": [
{
"path": "app\\Console\\Commands\\ExpirePrivateOffers.php",
"matches": true
},
{
"path": "app\\Http\\Controllers\\OfferPublicCatalogueController.php",
"matches": true
},
{
"path": "app\\Http\\Controllers\\PortalEditorialWorkflowController.php",
"matches": true
},
{
"path": "app\\Http\\Controllers\\PrivateOfferOperationsController.php",
"matches": true
},
{
"path": "app\\Http\\Controllers\\PrivateOfferPreparationController.php",
"matches": true
},
{
"path": "app\\Services\\OfferAvailability.php",
"matches": true
},
{
"path": "app\\Services\\OfferPublicCatalogue.php",
"matches": true
},
{
"path": "app\\Services\\OpportunityProfileWorkflow.php",
"matches": true
},
{
"path": "app\\Services\\PrivateOfferConfidentiality.php",
"matches": true
},
{
"path": "app\\Services\\PrivateOfferOperations.php",
"matches": true
},
{
"path": "app\\Services\\PrivateOfferPreparation.php",
"matches": true
},
{
"path": "config\\private_offers.php",
"matches": true
},
{
"path": "docs\\investmoz\\unification\\traceability-and-manual.md",
"matches": true
},
{
"path": "docs\\investmoz\\v2\\auditoria-portal\\matriz-requisitos.csv",
"matches": true
},
{
"path": "docs\\investmoz\\v2\\auditoria-portal\\ofertas-fase5-fecho-qa-20261114.md",
"matches": true
},
{
"path": "resources\\js\\components\\offer-operations.tsx",
"matches": true
},
{
"path": "resources\\js\\components\\public-offer-card.tsx",
"matches": true
},
{
"path": "resources\\js\\lib\\public-offer.ts",
"matches": true
},
{
"path": "resources\\js\\pages\\management\\editorial-workflow.tsx",
"matches": true
},
{
"path": "resources\\js\\pages\\offers\\preparation-index.tsx",
"matches": true
},
{
"path": "resources\\js\\pages\\offers\\preparation.tsx",
"matches": true
},
{
"path": "resources\\js\\pages\\offers\\public-detail.tsx",
"matches": true
},
{
"path": "resources\\js\\pages\\offers\\report.tsx",
"matches": true
},
{
"path": "routes\\console.php",
"matches": true
},
{
"path": "routes\\web.php",
"matches": true
},
{
"path": "tests\\Feature\\PrivateOfferOperationsTest.php",
"matches": true
},
{
"path": "outputs\\offers-private-phase5-20261114\\focused.log",
"matches": true
},
{
"path": "outputs\\offers-private-phase5-20261114\\focused.xml",
"matches": true
},
{
"path": "outputs\\offers-private-phase5-20261114\\regression.log",
"matches": true
},
{
"path": "outputs\\offers-private-phase5-20261114\\regression.xml",
"matches": true
},
{
"path": "outputs\\offers-private-phase5-20261114\\global-format.log",
"matches": true
},
{
"path": "outputs\\offers-private-phase5-20261114\\build-final.log",
"matches": true
}
],
"all_hashes_match": true,
"junit_suites": [
{
"name": "Tests\\Feature\\PrivateOfferOperationsTest",
"tests": "13",
"assertions": "180",
"failures": "0",
"errors": "0"
},
{
"name": "Tests\\Feature\\PrivateOfferConfidentialityTest",
"tests": "11",
"assertions": "160",
"failures": "0",
"errors": "0"
},
{
"name": "Tests\\Feature\\OfferPublicCatalogueTest",
"tests": "10",
"assertions": "133",
"failures": "0",
"errors": "0"
},
{
"name": "Tests\\Feature\\PrivateOfferPreparationTest",
"tests": "14",
"assertions": "146",
"failures": "0",
"errors": "0"
},
{
"name": "Tests\\Feature\\PrivateOfferEditorialTest",
"tests": "11",
"assertions": "161",
"failures": "0",
"errors": "0"
}
],
"totals": {
"tests": 59,
"assertions": 780,
"failures": 0,
"errors": 0
},
"migration_delta": [],
"execution": "Read-only verification of accepted receipts; no operational connection or installation."
}