Skip to content
Snippets Groups Projects
Commit c1ad82a4 authored by Christian Foidl's avatar Christian Foidl
Browse files

Issue #3417954: fix test to work in ci

parent 9ec2f08f
No related branches found
No related tags found
1 merge request!2Issue #3417954: Update drush commands to create() method
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment