Loading core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php +0 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ class BlockConfigSchemaTest extends KernelTestBase { */ protected static $modules = [ 'block', 'book', 'block_content', 'comment', 'node', Loading Loading @@ -56,7 +55,6 @@ protected function setUp(): void { $this->installEntitySchema('block_content'); $this->installEntitySchema('taxonomy_term'); $this->installEntitySchema('node'); $this->installSchema('book', ['book']); $this->container->get('theme_installer')->install(['stark']); } Loading core/modules/comment/tests/src/Functional/CommentBookTest.php→core/modules/book/tests/src/Functional/Comment/CommentBookTest.php +2 −2 Original line number Diff line number Diff line <?php namespace Drupal\Tests\comment\Functional; namespace Drupal\Tests\book\Functional\Comment; use Drupal\comment\CommentInterface; use Drupal\comment\Tests\CommentTestTrait; Loading @@ -11,7 +11,7 @@ /** * Tests visibility of comments on book pages. * * @group comment * @group book */ class CommentBookTest extends BrowserTestBase { Loading core/modules/book/tests/src/Kernel/Block/BlockConfigSchemaTest.php 0 → 100644 +75 −0 Original line number Diff line number Diff line <?php namespace Drupal\Tests\book\Kernel\Block; use Drupal\block\Entity\Block; use Drupal\Tests\SchemaCheckTestTrait; use Drupal\KernelTests\KernelTestBase; /** * Tests the block config schema. * * @group book */ class BlockConfigSchemaTest extends KernelTestBase { use SchemaCheckTestTrait; /** * {@inheritdoc} */ protected static $modules = [ 'block', 'book', 'node', // \Drupal\block\Entity\Block->preSave() calls system_region_list(). 'system', 'user', ]; /** * The typed config manager. * * @var \Drupal\Core\Config\TypedConfigManagerInterface */ protected $typedConfig; /** * {@inheritdoc} */ protected function setUp(): void { parent::setUp(); $this->typedConfig = \Drupal::service('config.typed'); $this->installEntitySchema('node'); $this->installSchema('book', ['book']); $this->container->get('theme_installer')->install(['stark']); } /** * Tests the block config schema for block plugins. */ public function testBlockConfigSchema() { $id = strtolower($this->randomMachineName()); $block = Block::create([ 'id' => $id, 'theme' => 'stark', 'weight' => 00, 'status' => TRUE, 'region' => 'content', 'plugin' => 'book_navigation', 'settings' => [ 'label' => $this->randomMachineName(), 'provider' => 'system', 'label_display' => FALSE, ], 'visibility' => [], ]); $block->save(); $config = $this->config("block.block.$id"); $this->assertEquals($id, $config->get('id')); $this->assertConfigSchema($this->typedConfig, $config->getName(), $config->get()); } } core/modules/views/tests/src/Functional/Handler/HandlerAllTest.php +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ class HandlerAllTest extends ViewTestBase { * @var array */ protected static $modules = [ 'book', 'block', 'comment', 'contact', Loading core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ public function testConfigSchema() { // Optional configuration. \Drupal::service('module_installer')->install( ['search', 'image', 'book', 'help', 'node'] ['search', 'image', 'help', 'node'] ); $this->rebuildAll(); $this->drupalLogin( Loading Loading
core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php +0 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ class BlockConfigSchemaTest extends KernelTestBase { */ protected static $modules = [ 'block', 'book', 'block_content', 'comment', 'node', Loading Loading @@ -56,7 +55,6 @@ protected function setUp(): void { $this->installEntitySchema('block_content'); $this->installEntitySchema('taxonomy_term'); $this->installEntitySchema('node'); $this->installSchema('book', ['book']); $this->container->get('theme_installer')->install(['stark']); } Loading
core/modules/comment/tests/src/Functional/CommentBookTest.php→core/modules/book/tests/src/Functional/Comment/CommentBookTest.php +2 −2 Original line number Diff line number Diff line <?php namespace Drupal\Tests\comment\Functional; namespace Drupal\Tests\book\Functional\Comment; use Drupal\comment\CommentInterface; use Drupal\comment\Tests\CommentTestTrait; Loading @@ -11,7 +11,7 @@ /** * Tests visibility of comments on book pages. * * @group comment * @group book */ class CommentBookTest extends BrowserTestBase { Loading
core/modules/book/tests/src/Kernel/Block/BlockConfigSchemaTest.php 0 → 100644 +75 −0 Original line number Diff line number Diff line <?php namespace Drupal\Tests\book\Kernel\Block; use Drupal\block\Entity\Block; use Drupal\Tests\SchemaCheckTestTrait; use Drupal\KernelTests\KernelTestBase; /** * Tests the block config schema. * * @group book */ class BlockConfigSchemaTest extends KernelTestBase { use SchemaCheckTestTrait; /** * {@inheritdoc} */ protected static $modules = [ 'block', 'book', 'node', // \Drupal\block\Entity\Block->preSave() calls system_region_list(). 'system', 'user', ]; /** * The typed config manager. * * @var \Drupal\Core\Config\TypedConfigManagerInterface */ protected $typedConfig; /** * {@inheritdoc} */ protected function setUp(): void { parent::setUp(); $this->typedConfig = \Drupal::service('config.typed'); $this->installEntitySchema('node'); $this->installSchema('book', ['book']); $this->container->get('theme_installer')->install(['stark']); } /** * Tests the block config schema for block plugins. */ public function testBlockConfigSchema() { $id = strtolower($this->randomMachineName()); $block = Block::create([ 'id' => $id, 'theme' => 'stark', 'weight' => 00, 'status' => TRUE, 'region' => 'content', 'plugin' => 'book_navigation', 'settings' => [ 'label' => $this->randomMachineName(), 'provider' => 'system', 'label_display' => FALSE, ], 'visibility' => [], ]); $block->save(); $config = $this->config("block.block.$id"); $this->assertEquals($id, $config->get('id')); $this->assertConfigSchema($this->typedConfig, $config->getName(), $config->get()); } }
core/modules/views/tests/src/Functional/Handler/HandlerAllTest.php +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ class HandlerAllTest extends ViewTestBase { * @var array */ protected static $modules = [ 'book', 'block', 'comment', 'contact', Loading
core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ public function testConfigSchema() { // Optional configuration. \Drupal::service('module_installer')->install( ['search', 'image', 'book', 'help', 'node'] ['search', 'image', 'help', 'node'] ); $this->rebuildAll(); $this->drupalLogin( Loading