From 955b0ac12857ac0b5b4828e95dfb9912f5e77a0a Mon Sep 17 00:00:00 2001 From: Rodrigo Quelca Date: Wed, 4 Dec 2024 14:13:22 -0400 Subject: [PATCH] remove command tests --- .../Commands/CacheMetricsClearCommandTest.php | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 tests/unit/ProcessMaker/Console/Commands/CacheMetricsClearCommandTest.php diff --git a/tests/unit/ProcessMaker/Console/Commands/CacheMetricsClearCommandTest.php b/tests/unit/ProcessMaker/Console/Commands/CacheMetricsClearCommandTest.php deleted file mode 100644 index 0cf07cfcc2..0000000000 --- a/tests/unit/ProcessMaker/Console/Commands/CacheMetricsClearCommandTest.php +++ /dev/null @@ -1,48 +0,0 @@ -metricsManager = Mockery::mock(CacheMetricsInterface::class); - - // Bind the mock to the service container - $this->app->instance(CacheMetricsInterface::class, $this->metricsManager); - - // Create the command with the mocked dependency - $this->command = new CacheMetricsClearCommand($this->metricsManager); - } - - public function testClearMetrics() - { - // Set up expectations - $this->metricsManager->shouldReceive('resetMetrics') - ->once(); - - // Execute the command - $this->artisan('cache:metrics-clear') - ->expectsOutput('Clearing all cache metrics data...') - ->expectsOutput('Cache metrics data cleared successfully!') - ->assertExitCode(0); - } - - protected function tearDown(): void - { - Mockery::close(); - parent::tearDown(); - } -}