From b327594532ead129a0f5a55a854680360d62ddc9 Mon Sep 17 00:00:00 2001 From: Nathan Douglas Date: Wed, 4 Oct 2023 15:45:15 -0400 Subject: [PATCH] Fix a couple fails. --- .../src/Controller/FrontendVersionAutocompleteController.php | 4 ++-- .../unit/FrontendVersion/FrontendVersionTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docroot/modules/custom/va_gov_content_release/src/Controller/FrontendVersionAutocompleteController.php b/docroot/modules/custom/va_gov_content_release/src/Controller/FrontendVersionAutocompleteController.php index a752538719..dee748c71c 100644 --- a/docroot/modules/custom/va_gov_content_release/src/Controller/FrontendVersionAutocompleteController.php +++ b/docroot/modules/custom/va_gov_content_release/src/Controller/FrontendVersionAutocompleteController.php @@ -17,9 +17,9 @@ class FrontendVersionAutocompleteController extends ControllerBase { /** - * GitHub Clients for `content-build` repository. + * Frontend version search service. * - * @var \Drupal\va_gov_github\Api\Client\ApiClientInterface + * @var \Drupal\va_gov_content_release\FrontendVersionSearch\FrontendVersionSearchInterface */ protected $frontendVersionSearch; /** diff --git a/tests/phpunit/va_gov_content_release/unit/FrontendVersion/FrontendVersionTest.php b/tests/phpunit/va_gov_content_release/unit/FrontendVersion/FrontendVersionTest.php index 420fd80ed9..28b32fc91f 100644 --- a/tests/phpunit/va_gov_content_release/unit/FrontendVersion/FrontendVersionTest.php +++ b/tests/phpunit/va_gov_content_release/unit/FrontendVersion/FrontendVersionTest.php @@ -32,7 +32,7 @@ public function testGetSetReset() : void { $frontend = Frontend::ContentBuild; $frontendVersion = new FrontendVersion($state); $this->assertEquals(FrontendVersionInterface::FRONTEND_VERSION_DEFAULT, $frontendVersion->getVersion($frontend)); - $frontendVersion->set('1.2.3'); + $frontendVersion->setVersion($frontend, '1.2.3'); $this->assertEquals('1.2.3', $frontendVersion->getVersion($frontend)); $frontendVersion->reset(); $this->assertEquals(FrontendVersionInterface::FRONTEND_VERSION_DEFAULT, $frontendVersion->getVersion($frontend));