From fa0c0a835ceda3ce37d98ca82efa4bd470dac090 Mon Sep 17 00:00:00 2001 From: Christian Burk Date: Thu, 27 Jun 2024 12:58:25 -0500 Subject: [PATCH 1/3] VACMS-17977: Updates the VBA-related code for launch --- .../va_gov_content_types/src/Interfaces/IsFacilityInterface.php | 2 +- docroot/modules/custom/va_gov_facilities/src/FacilityOps.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docroot/modules/custom/va_gov_content_types/src/Interfaces/IsFacilityInterface.php b/docroot/modules/custom/va_gov_content_types/src/Interfaces/IsFacilityInterface.php index c4c6a58d97..5507a713b9 100644 --- a/docroot/modules/custom/va_gov_content_types/src/Interfaces/IsFacilityInterface.php +++ b/docroot/modules/custom/va_gov_content_types/src/Interfaces/IsFacilityInterface.php @@ -10,7 +10,7 @@ interface IsFacilityInterface { const FACILITY_CONTENT_TYPES = [ 'health_care_local_facility', // 'nca_facility', // Not rendered on the FE yet. Add it when it is. - // 'vba_facility', // Not rendered on the FE yet. Add it when it is. + 'vba_facility', 'vet_center_cap', 'vet_center_outstation', 'vet_center', diff --git a/docroot/modules/custom/va_gov_facilities/src/FacilityOps.php b/docroot/modules/custom/va_gov_facilities/src/FacilityOps.php index e945f6d911..c67d00d770 100644 --- a/docroot/modules/custom/va_gov_facilities/src/FacilityOps.php +++ b/docroot/modules/custom/va_gov_facilities/src/FacilityOps.php @@ -189,7 +189,6 @@ public static function isBundleFacilityToAutoArchive(string $type) : bool { public static function isFacilityLaunched(NodeInterface $node) : bool { $facilities_not_launched = [ 'nca_facility', - 'vba_facility', ]; return !in_array($node->bundle(), $facilities_not_launched); } From dd9d96d7aafc25d02b7d7f079f082ee46beafcd4 Mon Sep 17 00:00:00 2001 From: Christian Burk Date: Thu, 27 Jun 2024 13:06:09 -0500 Subject: [PATCH 2/3] VACMS-17977: Updates PHPUnit test --- .../va_gov_content_types/unit/Traits/IsFacilityTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/va_gov_content_types/unit/Traits/IsFacilityTraitTest.php b/tests/phpunit/va_gov_content_types/unit/Traits/IsFacilityTraitTest.php index 685ff58795..14a3545630 100644 --- a/tests/phpunit/va_gov_content_types/unit/Traits/IsFacilityTraitTest.php +++ b/tests/phpunit/va_gov_content_types/unit/Traits/IsFacilityTraitTest.php @@ -47,7 +47,7 @@ public function isFacilityDataProvider() { ], 'health_care_local_facility' => ['health_care_local_facility', TRUE], 'nca_facility' => ['nca_facility', FALSE], - 'vba_facility' => ['vba_facility', FALSE], + 'vba_facility' => ['vba_facility', TRUE], 'vet_center_cap' => ['vet_center_cap', TRUE], 'vet_center_outstation' => ['vet_center_outstation', TRUE], 'vet_center' => ['vet_center', TRUE], From cdba2c52c23c4e27c6d740f604df74a7e6570b5d Mon Sep 17 00:00:00 2001 From: Christian Burk Date: Thu, 27 Jun 2024 15:17:03 -0500 Subject: [PATCH 3/3] VACMS-17977: Updates the functional test, too. --- .../functional/Traits/IsFacilityTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/va_gov_content_types/functional/Traits/IsFacilityTraitTest.php b/tests/phpunit/va_gov_content_types/functional/Traits/IsFacilityTraitTest.php index 78fce692f1..ad5b661ae7 100644 --- a/tests/phpunit/va_gov_content_types/functional/Traits/IsFacilityTraitTest.php +++ b/tests/phpunit/va_gov_content_types/functional/Traits/IsFacilityTraitTest.php @@ -45,7 +45,7 @@ public function isFacilityDataProvider() { ], 'health_care_local_facility' => ['health_care_local_facility', TRUE], 'nca_facility' => ['nca_facility', FALSE], - 'vba_facility' => ['vba_facility', FALSE], + 'vba_facility' => ['vba_facility', TRUE], 'vet_center_cap' => ['vet_center_cap', TRUE], 'vet_center_outstation' => ['vet_center_outstation', TRUE], 'vet_center' => ['vet_center', TRUE],