/**
  * Tests the block config schema for block plugins.
  */
 public function testBlockConfigSchema()
 {
     foreach ($this->blockManager->getDefinitions() as $block_id => $definition) {
         $id = strtolower($this->randomMachineName());
         $block = Block::create(array('id' => $id, 'theme' => 'stark', 'weight' => 00, 'status' => TRUE, 'region' => 'content', 'plugin' => $block_id, 'settings' => array('label' => $this->randomMachineName(), 'provider' => 'system', 'label_display' => FALSE), 'visibility' => array()));
         $block->save();
         $config = \Drupal::config("block.block.{$id}");
         $this->assertEqual($config->get('id'), $id);
         $this->assertConfigSchema($this->typedConfig, $config->getName(), $config->get());
     }
 }