class InstallerThemesBlocksProfileTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerThemesBlocksProfileTest.php \Drupal\FunctionalTests\Installer\InstallerThemesBlocksProfileTest
Verifies that the installer does not generate theme blocks.
@group Installer
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\FunctionalTests\Installer\InstallerTestBase uses \Drupal\Tests\RequirementsPageTrait implements \Drupal\Tests\BrowserTestBase
- class \Drupal\FunctionalTests\Installer\InstallerThemesBlocksProfileTest implements \Drupal\FunctionalTests\Installer\InstallerTestBase
- class \Drupal\FunctionalTests\Installer\InstallerTestBase uses \Drupal\Tests\RequirementsPageTrait implements \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of InstallerThemesBlocksProfileTest
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerThemesBlocksProfileTest.php, line 12
Namespace
Drupal\FunctionalTests\InstallerView source
class InstallerThemesBlocksProfileTest extends InstallerTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'testing_theme_required_blocks';
/**
* {@inheritdoc}
*/
protected $profile = 'testing_themes_blocks';
/**
* Verify that there is no automatic block generation.
*/
public function testInstaller() {
// Account menu is a block that testing_theme_required_blocks provides,
// but not testing_theme_optional_blocks. There shouldn't be a account menu
// block for testing_theme_optional_blocks after the installation.
$this->assertEmpty(Block::load('testing_theme_optional_blocks_account_menu'));
$this->assertNotEmpty(Block::load('testing_theme_optional_blocks_page_title'));
// Ensure that for themes without blocks, some default blocks will be
// created.
$this->assertNotEmpty(Block::load('testing_theme_without_blocks_account_menu'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.