protected function BlockStorageUnitTest::loadTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block/src/Tests/BlockStorageUnitTest.php \Drupal\block\Tests\BlockStorageUnitTest::loadTests()
Tests the loading of blocks.
1 call to BlockStorageUnitTest::loadTests()
- BlockStorageUnitTest::testBlockCRUD in core/
modules/ block/ src/ Tests/ BlockStorageUnitTest.php - Tests CRUD operations.
File
- core/
modules/ block/ src/ Tests/ BlockStorageUnitTest.php, line 113 - Contains \Drupal\block\Tests\BlockStorageUnitTest.
Class
- BlockStorageUnitTest
- Tests the storage of blocks.
Namespace
Drupal\block\TestsCode
protected function loadTests() {
$entity = $this->controller
->load('test_block');
$this
->assertTrue($entity instanceof Block, 'The loaded entity is a Block.');
// Verify several properties of the block.
$this
->assertEqual($entity
->getRegion(), '-1');
$this
->assertTrue($entity
->status());
$this
->assertEqual($entity
->getTheme(), 'stark');
$this
->assertTrue($entity
->uuid());
}