Skip to content

Commit

Permalink
Edit constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 17, 2022
1 parent 405a969 commit 423bf68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unish/CreateEntityType.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public static function createContentEntity($testCase): void
'dependencies' => 'drupal:text',
];
$testCase->drush('generate', ['module'], ['verbose' => null, 'answer' => $answers, 'destination' => Path::join($testCase->webroot(), 'modules/contrib')], null, null, $testCase::EXIT_SUCCESS, null, ['SHELL_INTERACTIVE' => 1]);
// Currently needed for Drush 10.x tests. Harmless on other versions.
$path = Path::join($testCase->webroot(), 'modules/contrib/unish_article/unish_article.info.yml');
$contents = file_get_contents($path);
file_put_contents($path, str_replace('^8 || ^9', '^8 || ^9 || ^10', $contents));


// Create a content entity type and enable its module.
// Note that only the values below are used. The keys are for documentation.
$answers = [
Expand Down

0 comments on commit 423bf68

Please sign in to comment.