From 3b7a02e490e8cb53587d0d863aba6e47a187e62f Mon Sep 17 00:00:00 2001 From: jankulma Date: Tue, 9 Apr 2024 13:02:19 +0200 Subject: [PATCH] Add cron namespace to the command --- .../Command/ActualizeSearchTermReportCronCommand.php | 2 +- .../WebsiteSearchBundle/Resources/config/oro/features.yml | 2 +- .../Command/ActualizeSearchTermReportCronCommandTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Oro/Bundle/WebsiteSearchBundle/Command/ActualizeSearchTermReportCronCommand.php b/src/Oro/Bundle/WebsiteSearchBundle/Command/ActualizeSearchTermReportCronCommand.php index 8e3e5bb20d..654afffaec 100644 --- a/src/Oro/Bundle/WebsiteSearchBundle/Command/ActualizeSearchTermReportCronCommand.php +++ b/src/Oro/Bundle/WebsiteSearchBundle/Command/ActualizeSearchTermReportCronCommand.php @@ -14,7 +14,7 @@ class ActualizeSearchTermReportCronCommand extends Command implements CronCommandScheduleDefinitionInterface { /** @var string */ - protected static $defaultName = 'oro:website-search:actualize-search-term-report'; + protected static $defaultName = 'oro:cron:website-search:actualize-search-term-report'; private SearchResultHistoryManagerInterface $manager; diff --git a/src/Oro/Bundle/WebsiteSearchBundle/Resources/config/oro/features.yml b/src/Oro/Bundle/WebsiteSearchBundle/Resources/config/oro/features.yml index 1973745b29..0befe33b39 100644 --- a/src/Oro/Bundle/WebsiteSearchBundle/Resources/config/oro/features.yml +++ b/src/Oro/Bundle/WebsiteSearchBundle/Resources/config/oro/features.yml @@ -7,7 +7,7 @@ features: - 'oro_website_search_result_history_index' - 'oro_website_search_term_preview' commands: - - 'oro:website-search:actualize-search-term-report' + - 'oro:cron:website-search:actualize-search-term-report' entities: - 'Oro\Bundle\WebsiteSearchBundle\SearchResult\Entity\SearchResultHistory' - 'Oro\Bundle\WebsiteSearchBundle\SearchResult\Entity\SearchTermReport' diff --git a/src/Oro/Bundle/WebsiteSearchBundle/Tests/Functional/Command/ActualizeSearchTermReportCronCommandTest.php b/src/Oro/Bundle/WebsiteSearchBundle/Tests/Functional/Command/ActualizeSearchTermReportCronCommandTest.php index 7e9565c673..54bf5138d0 100644 --- a/src/Oro/Bundle/WebsiteSearchBundle/Tests/Functional/Command/ActualizeSearchTermReportCronCommandTest.php +++ b/src/Oro/Bundle/WebsiteSearchBundle/Tests/Functional/Command/ActualizeSearchTermReportCronCommandTest.php @@ -33,7 +33,7 @@ public function testCommand() $this->assertEquals(0, $reportRepo->count([])); $this->assertEquals(9, $historyRepo->count([])); - $this->runCommand('oro:website-search:actualize-search-term-report'); + $this->runCommand('oro:cron:website-search:actualize-search-term-report'); $this->assertEquals(6, $reportRepo->count([])); $this->assertEquals(5, $historyRepo->count([]));