/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     /** @var \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler */
     $theme_handler = \Drupal::service('theme_handler');
     $theme_handler->refreshInfo();
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function doSelectionTest()
 {
     parent::doSelectionTest();
     // Ensure that normal and post_update updates are merged together on the
     // selection page.
     $this->assertRaw('<ul><li>8001 -   Normal update_N() function. </li><li>First update.</li><li>Second update.</li><li>Test1 update.</li><li>Test0 update.</li><li>Testing batch processing in post updates update.</li></ul>');
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     // @todo Remove in https://www.drupal.org/node/2568069.
     /** @var \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler */
     $theme_handler = \Drupal::service('theme_handler');
     $theme_handler->refreshInfo();
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     /** @var \Drupal\Core\State\StateInterface $state */
     $state = $this->container->get('state');
     // Enable responsive_image module without using the module installer to
     // avoid installation of configuration shipped in module.
     $system_module_files = $state->get('system.module.files', []);
     $system_module_files += ['responsive_image' => 'core/modules/responsive_image/responsive_image.info.yml'];
     $state->set('system.module.files', $system_module_files);
     $this->config('core.extension')->set('module.responsive_image', 0)->save();
     $this->container->get('module_handler')->addModule('responsive_image', 'core/modules/responsive_image');
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     $this->databaseDumpFiles = [__DIR__ . '/../../../tests/fixtures/update/drupal-8.bare.standard.php.gz'];
     parent::setUp();
 }
コード例 #6
0
ファイル: FieldUpdateTest.php プロジェクト: ddrozdik/dmaps
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->configFactory = $this->container->get('config.factory');
 }
コード例 #7
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->databaseDumpFiles = [__DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.views-entity-views-data-2455125.php'];
     parent::setUp();
 }
コード例 #8
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->databaseDumpFiles = [__DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php'];
     parent::setUp();
 }