Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3338541
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3338541
Commits
ccc92555
Unverified
Commit
ccc92555
authored
3 years ago
by
Lee Rowlands
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3209048
by jedihe, jplana: Core themes are not added to the test autoloader
parent
383360e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/tests/Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php
+22
-0
22 additions, 0 deletions
.../Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php
core/tests/bootstrap.php
+1
-0
1 addition, 0 deletions
core/tests/bootstrap.php
with
23 additions
and
0 deletions
core/tests/Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php
0 → 100644
+
22
−
0
View file @
ccc92555
<?php
namespace
Drupal\Tests\Core\Theme
;
use
Drupal\Tests\UnitTestCase
;
use
Drupal\claro\ClaroPreRender
;
/**
* Confirms that core/themes is autoloaded for tests.
*
* @group Theme
*/
class
CoreThemesAutoloadedForTests
extends
UnitTestCase
{
/**
* Confirms that core/themes is autoloaded for tests.
*/
public
function
testCoreThemesAutoloadedForTests
()
{
$this
->
assertTrue
(
class_exists
(
ClaroPreRender
::
class
),
'core/themes (ClaroPreRender) is registered with the tests autoloader'
);
}
}
This diff is collapsed.
Click to expand it.
core/tests/bootstrap.php
+
1
−
0
View file @
ccc92555
...
...
@@ -51,6 +51,7 @@ function drupal_phpunit_contrib_extension_directory_roots($root = NULL) {
$paths
=
[
$root
.
'/core/modules'
,
$root
.
'/core/profiles'
,
$root
.
'/core/themes'
,
$root
.
'/modules'
,
$root
.
'/profiles'
,
$root
.
'/themes'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment