Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!7632
Update file DrupalComponentTest.php
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Update file DrupalComponentTest.php
issue/drupal-3442297:3442297-change-dataprovider-to
into
11.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Closed
Update file DrupalComponentTest.php
mondrake
requested to merge
issue/drupal-3442297:3442297-change-dataprovider-to
into
11.x
Apr 21, 2024
Overview
0
Commits
1
Pipelines
1
Changes
1
Closes
#3442297
0
0
Merge request reports
Compare
11.x
11.x (base)
and
latest version
latest version
43b39d9c
1 commit,
Apr 21, 2024
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/tests/Drupal/Tests/Component/DrupalComponentTest.php
+
4
−
4
View file @ 43b39d9c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -38,12 +38,12 @@ public function testNoCoreInComponentTests() {
/**
* Tests LICENSE.txt is present and has the correct content.
*
* @param $component_path
* @param
string
$component_path
* The path to the component.
*
* @dataProvider
\Drupal\Tests\Component\DrupalComponentTest::
getComponents
* @dataProvider getComponents
*/
public
function
testComponentLicense
(
$component_path
)
{
public
function
testComponentLicense
(
string
$component_path
)
:
void
{
$this
->
assertFileExists
(
$component_path
.
DIRECTORY_SEPARATOR
.
'LICENSE.txt'
);
$this
->
assertSame
(
'e84dac1d9fbb5a4a69e38654ce644cea769aa76b'
,
hash_file
(
'sha1'
,
$component_path
.
DIRECTORY_SEPARATOR
.
'LICENSE.txt'
));
}
@@ -53,7 +53,7 @@ public function testComponentLicense($component_path) {
*
* @return array
*/
public
function
getComponents
()
{
public
static
function
getComponents
()
:
array
{
$root_component_path
=
dirname
(
substr
(
__DIR__
,
0
,
-
strlen
(
__NAMESPACE__
)))
.
'/lib/Drupal/Component'
;
$component_paths
=
[];
foreach
(
new
\DirectoryIterator
(
$root_component_path
)
as
$file
)
{
Loading