From 91d11736e8f10f994b2bc974bc7127cbbb50430c Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 30 Jul 2024 15:25:35 -0400 Subject: [PATCH] Test that the install profile is uninstalled during the install process (#152) --- tests/src/ExistingSite/BasicExpectationsTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/ExistingSite/BasicExpectationsTest.php b/tests/src/ExistingSite/BasicExpectationsTest.php index f16121e5..211f4df7 100644 --- a/tests/src/ExistingSite/BasicExpectationsTest.php +++ b/tests/src/ExistingSite/BasicExpectationsTest.php @@ -4,6 +4,7 @@ namespace Drupal\Tests\starshot\ExistingSite; +use Drupal\Core\Config\ConfigFactoryInterface; use weitzman\DrupalTestTraits\ExistingSiteBase; /** @@ -20,6 +21,10 @@ public function testBasicExpectations(): void { $assert_session = $this->assertSession(); $assert_session->statusCodeEquals(200); $assert_session->elementAttributeContains('css', 'meta[name="Generator"]', 'content', 'Drupal'); + + /** @var \Drupal\Core\Config\ConfigFactoryInterface $config_factory */ + $config_factory = $this->container->get(ConfigFactoryInterface::class); + $this->assertEmpty($config_factory->get('core.extension')->get('profile')); } }