Skip to content
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

Issue #638: Fix all our tests #639

Merged
merged 39 commits into from
Aug 13, 2024
Merged

Conversation

justafish
Copy link
Member

@justafish justafish commented Aug 8, 2024

  • Replace sserbin/twig-linter with vincentlanglet/twig-cs-fixer/ - sserbin/twig-linter depends on an old version of symfony/console and core is adopting this new package at some point https://www.drupal.org/project/drupal/issues/3284817 - it also has a much better extension mechanism which will help if something like Fix linting for Storybook #615 comes up again
  • Update Pantheon settings for Drupal 11
  • Update PHPUnit configurations and tests for Drupal 11
  • Fix mysterious yarn issues with DDEV

@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 14:03 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 14:17 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 14:35 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 14:55 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 15:15 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 16:25 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 16:31 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 8, 2024 16:57 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 9, 2024 14:32 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 9, 2024 14:50 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 9, 2024 14:57 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 9, 2024 15:07 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 9, 2024 17:26 Destroyed
@deviantintegral
Copy link
Member

You've buried the lede here with "Drupal 11 compatibility"!

Copy link
Member

@deviantintegral deviantintegral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should consider this a BC break, and bump Drainpipe to v4? In particular, if the twig linter has any sort of different rules, or if teams were expecting the twig linter in other custom tasks.

ddev exec npm i -g yarn@1.22.1
ddev exec 'ln -s $(npm root -g)/yarn/bin/yarn /usr/local/bin/yarn'
ddev exec yarn init -y
ddev exec yarn add focus-trap@^6.7.3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this package for? Is it just an easy way to do a test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's testing whether the package import works correctly when bundling


include:
- php-version: 8.1
drupal-version: ":^10"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice.

Comment on lines -41 to +43
$this->assertEquals(REQUEST_TIME, $user->getCreatedTime(), 'Creating a user sets default "created" timestamp.');
$this->assertEquals(REQUEST_TIME, $user->getChangedTime(), 'Creating a user sets default "changed" timestamp.');
$this->assertEquals($request_time, $user->getCreatedTime(), 'Creating a user sets default "created" timestamp.');
$this->assertEquals($request_time, $user->getChangedTime(), 'Creating a user sets default "changed" timestamp.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 14:46 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 15:47 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 15:59 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 16:07 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 16:17 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 16:28 Destroyed
@justafish
Copy link
Member Author

@deviantintegral I've made some tweaks to make it compatible with both D10 and D11. I don't think we need to bump to v4 as the twig linter wasn't configurable previously.

@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 12, 2024 16:38 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-639 August 13, 2024 09:32 Destroyed
@justafish justafish merged commit 84d3711 into main Aug 13, 2024
53 checks passed
@justafish justafish deleted the justafish/638-replace-twig-linter branch August 13, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants