Commit bde19066 authored by xjm's avatar xjm

Issue #2793443 by dawehner: Make private functions protected in BrowserTestBase/KernelTestBase

parent 4295f599
......@@ -131,7 +131,7 @@ abstract class KernelTestBase extends \PHPUnit_Framework_TestCase implements Ser
/**
* @var \Drupal\Core\DependencyInjection\ContainerBuilder
*/
private static $initialContainerBuilder;
protected static $initialContainerBuilder;
/**
* Modules to enable.
......@@ -319,7 +319,7 @@ public function getDatabasePrefix() {
/**
* Bootstraps a kernel for a test.
*/
private function bootKernel() {
protected function bootKernel() {
$this->setSetting('container_yamls', []);
// Allow for test-specific overrides.
$settings_services_file = $this->root . '/sites/default' . '/testing.services.yml';
......@@ -501,7 +501,7 @@ protected function getDatabaseConnectionInfo() {
* @return \Drupal\Core\DependencyInjection\ContainerBuilder
* A clone of the precompiled, empty service container.
*/
private function getCompiledContainerBuilder(array $modules) {
protected function getCompiledContainerBuilder(array $modules) {
if (!isset(self::$initialContainerBuilder)) {
$kernel = new DrupalKernel('testing', $this->classLoader, FALSE);
$kernel->setSitePath($this->siteDirectory);
......@@ -567,7 +567,7 @@ protected function initFileCache() {
* @see \Drupal\Tests\KernelTestBase::enableModules()
* @see \Drupal\Core\Extension\ModuleHandler::add()
*/
private function getExtensionsForModules(array $modules) {
protected function getExtensionsForModules(array $modules) {
$extensions = array();
$discovery = new ExtensionDiscovery($this->root);
$discovery->setProfileDirectories(array());
......@@ -1031,7 +1031,7 @@ protected function vfsDump() {
*
* @return array
*/
private static function getModulesToEnable($class) {
protected static function getModulesToEnable($class) {
$modules = array();
while ($class) {
if (property_exists($class, 'modules')) {
......
......@@ -1200,7 +1200,7 @@ protected function installParameters() {
* @see drupal_valid_test_ua()
* @see BrowserTestBase::prepareEnvironment()
*/
private function prepareDatabasePrefix() {
protected function prepareDatabasePrefix() {
// Ensure that the generated test site directory does not exist already,
// which may happen with a large amount of concurrent threads and
// long-running tests.
......@@ -1216,7 +1216,7 @@ private function prepareDatabasePrefix() {
*
* @see BrowserTestBase::prepareEnvironment()
*/
private function changeDatabasePrefix() {
protected function changeDatabasePrefix() {
if (empty($this->databasePrefix)) {
$this->prepareDatabasePrefix();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment