You are here

public function HooksTest::testAcquiaExtensionUninstall in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.3 modules/acquia_telemetry/tests/src/Kernel/HooksTest.php \Drupal\Tests\acquia_telemetry\Kernel\HooksTest::testAcquiaExtensionUninstall()

File

modules/acquia_telemetry/tests/src/Kernel/HooksTest.php, line 61

Class

HooksTest
@group lightning @group lightning_core @group acquia_telemetry

Namespace

Drupal\Tests\acquia_telemetry\Kernel

Code

public function testAcquiaExtensionUninstall() {
  $modules = [
    'lightning_search',
  ];
  $this->telemetry
    ->getAcquiaExtensionNames()
    ->willReturn($modules)
    ->shouldBeCalled();
  $this->telemetry
    ->sendTelemetry('Acquia extensions uninstalled', [
    'uninstalled_extensions' => $modules,
  ])
    ->shouldBeCalled();
  acquia_telemetry_modules_uninstalled($modules);
}