Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
233f9caa
Commit
233f9caa
authored
Jun 20, 2014
by
Jennifer Hodgdon
Browse files
Issue
#2287319
by martin107: Document exceptions thrown in KernelTestBase
parent
2c77fc29
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/src/KernelTestBase.php
View file @
233f9caa
...
...
@@ -105,6 +105,10 @@ protected function beforePrepareEnvironment() {
* Create and set new configuration directories.
*
* @see config_get_config_directory()
*
* @throws \RuntimeException
* Thrown when CONFIG_ACTIVE_DIRECTORY or CONFIG_STAGING_DIRECTORY cannot
* be created or made writable.
*/
protected
function
prepareConfigDirectories
()
{
$this
->
configDirectories
=
array
();
...
...
@@ -294,6 +298,9 @@ public function containerBuild(ContainerBuilder $container) {
*
* @param array $modules
* A list of modules for which to install default configuration.
*
* @throws \RuntimeException
* Thrown when any module listed in $modules is not enabled.
*/
protected
function
installConfig
(
array
$modules
)
{
foreach
(
$modules
as
$module
)
{
...
...
@@ -316,6 +323,10 @@ protected function installConfig(array $modules) {
* The name of the module that defines the table's schema.
* @param string|array $tables
* The name or an array of the names of the tables to install.
*
* @throws \RuntimeException
* Thrown when $module is not enabled or when the table schema cannot be
* found in the module specified.
*/
protected
function
installSchema
(
$module
,
$tables
)
{
// drupal_get_schema_unprocessed() is technically able to install a schema
...
...
@@ -356,6 +367,9 @@ protected function installSchema($module, $tables) {
*
* @param string $entity_type_id
* The ID of the entity type.
*
* @throws \RuntimeException
* Thrown when the entity type does not support automatic schema installation.
*/
protected
function
installEntitySchema
(
$entity_type_id
)
{
/** @var \Drupal\Core\Entity\EntityManagerInterface $entity_manager */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment