Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
magic_code
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
magic_code
Commits
c1ad82a4
Commit
c1ad82a4
authored
1 year ago
by
Christian Foidl
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3417954
: fix test to work in ci
parent
9ec2f08f
No related branches found
No related tags found
1 merge request
!2
Issue #3417954: Update drush commands to create() method
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/MagicCodeCommandsTest.php
+4
-2
4 additions, 2 deletions
tests/src/Functional/MagicCodeCommandsTest.php
with
4 additions
and
2 deletions
tests/src/Functional/MagicCodeCommandsTest.php
+
4
−
2
View file @
c1ad82a4
...
...
@@ -128,7 +128,8 @@ class MagicCodeCommandsTest extends BrowserTestBase {
],
);
$code
=
substr
(
$this
->
getOutput
(),
5
,
7
);
$output
=
$this
->
getOutput
();
$code
=
strlen
(
$output
)
>
7
?
substr
(
$this
->
getOutput
(),
5
,
7
)
:
$output
;
$result
=
$this
->
magicCodeStorage
->
loadByProperties
([
'value'
=>
$code
]);
/** @var \Drupal\magic_code\Entity\MagicCodeInterface $codeEntity */
...
...
@@ -153,7 +154,8 @@ class MagicCodeCommandsTest extends BrowserTestBase {
],
);
$code
=
substr
(
$this
->
getOutput
(),
5
,
7
);
$output
=
$this
->
getOutput
();
$code
=
strlen
(
$output
)
>
7
?
substr
(
$this
->
getOutput
(),
5
,
7
)
:
$output
;
$result
=
$this
->
magicCodeStorage
->
loadByProperties
([
'value'
=>
$code
]);
/** @var \Drupal\magic_code\Entity\MagicCodeInterface $codeEntity */
...
...
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