-
-
Notifications
You must be signed in to change notification settings - Fork 29
Updated File and PHPUnit helpers versions. #2013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b8df087
95a5f62
9649c8b
f2cb62d
48b6ff7
de7810f
e586aa8
b8d4e18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,15 +17,25 @@ public static function dataProviderInstall(): array { | |||||||||||||||||||||||
| return [ | ||||||||||||||||||||||||
| 'starter, demo db' => [ | ||||||||||||||||||||||||
| static::cw(fn() => Env::put(PromptManager::makeEnvName(Starter::id()), Starter::LOAD_DATABASE_DEMO)), | ||||||||||||||||||||||||
| static::cw(fn(FunctionalTestCase $test) => $test->assertSutNotContains([ | ||||||||||||||||||||||||
| 'drupal/cms', | ||||||||||||||||||||||||
| 'wikimedia/composer-merge-plugin', | ||||||||||||||||||||||||
| 'vendor/drupal/cms/composer.json', | ||||||||||||||||||||||||
| ])), | ||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| 'starter, Drupal profile' => [ | ||||||||||||||||||||||||
| static::cw(fn() => Env::put(PromptManager::makeEnvName(Starter::id()), Starter::INSTALL_PROFILE_CORE)), | ||||||||||||||||||||||||
| static::cw(fn(FunctionalTestCase $test) => $test->assertSutNotContains([ | ||||||||||||||||||||||||
| 'drupal/cms', | ||||||||||||||||||||||||
| 'wikimedia/composer-merge-plugin', | ||||||||||||||||||||||||
| 'vendor/drupal/cms/composer.json', | ||||||||||||||||||||||||
| ])), | ||||||||||||||||||||||||
|
Comment on lines
+29
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Mirror negative assertions for CORE profile (include symfony/http-client; use regex for vendor path) Keep parity with the “demo db” case and reduce false negatives on the vendor path by matching it as a string via regex. - static::cw(fn(FunctionalTestCase $test) => $test->assertSutNotContains([
- 'drupal/cms',
- 'wikimedia/composer-merge-plugin',
- 'vendor/drupal/cms/composer.json',
- ])),
+ static::cw(fn(FunctionalTestCase $test) => $test->assertSutNotContains([
+ 'drupal/cms',
+ 'wikimedia/composer-merge-plugin',
+ 'symfony/http-client',
+ '/vendor\/drupal\/cms\/composer\.json/',
+ ])),📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| 'starter, Drupal CMS profile' => [ | ||||||||||||||||||||||||
| static::cw(fn() => Env::put(PromptManager::makeEnvName(Starter::id()), Starter::INSTALL_PROFILE_DRUPALCMS)), | ||||||||||||||||||||||||
| static::cw(fn(FunctionalTestCase $test) => $test->assertSutNotContains([ | ||||||||||||||||||||||||
| static::cw(fn(FunctionalTestCase $test) => $test->assertSutContains([ | ||||||||||||||||||||||||
| 'drupal/cms', | ||||||||||||||||||||||||
| 'wikimedia/composer-merge-plugin', | ||||||||||||||||||||||||
| 'vendor/drupal/cms/composer.json', | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Add missing check for symfony/http-client and use regex for vendor path to avoid word-boundary misses
The handler adds symfony/http-client only for the Drupal CMS profile; we should assert its absence here. Also switch the vendor path to a regex so it’s matched as a raw string, not a “word”.
📝 Committable suggestion
🤖 Prompt for AI Agents