Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Commits
33b7e949
Commit
33b7e949
authored
10 months ago
by
Ted Bowman
Browse files
Options
Downloads
Plain Diff
Merge branch '3.1.x' into 3441577-core-mr
parents
8a6fd971
e99229c2
No related branches found
No related tags found
1 merge request
!1057
Issue #3441577 add property types
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/src/ConverterCommand.php
+3
-2
3 additions, 2 deletions
scripts/src/ConverterCommand.php
with
3 additions
and
2 deletions
scripts/src/ConverterCommand.php
+
3
−
2
View file @
33b7e949
...
...
@@ -742,11 +742,12 @@ class ConverterCommand extends Command {
private
static
function
copyGenericTest
(
string
$new_module_path
,
string
$core_dir
):
void
{
$parts
=
explode
(
'/'
,
$new_module_path
);
$module_name
=
array_pop
(
$parts
);
$original_test
=
"
$core_dir
/core/modules/action/tests/src/Functional/GenericTest.php"
;
$core_source_module
=
'announcements_feed'
;
$original_test
=
"
$core_dir
/core/modules/
$core_source_module
/tests/src/Functional/GenericTest.php"
;
$new_test
=
"
$new_module_path
/tests/src/Functional/GenericTest.php"
;
$fs
=
new
Filesystem
();
$fs
->
copy
(
$original_test
,
$new_test
);
static
::
replaceContents
([
new
\SplFileInfo
(
$new_test
)],
'action'
,
$module_name
);
static
::
replaceContents
([
new
\SplFileInfo
(
$new_test
)],
$core_source_module
,
$module_name
);
}
private
function
getContribModuleComposerJsonSection
(
string
$section
):
array
{
...
...
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