Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Test that the install profile is uninstalled during the install proce…
Browse files Browse the repository at this point in the history
…ss (#152)
  • Loading branch information
phenaproxima authored Jul 30, 2024
1 parent 340fa47 commit 91d1173
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/ExistingSite/BasicExpectationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Drupal\Tests\starshot\ExistingSite;

use Drupal\Core\Config\ConfigFactoryInterface;
use weitzman\DrupalTestTraits\ExistingSiteBase;

/**
Expand All @@ -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'));
}

}

0 comments on commit 91d1173

Please sign in to comment.