-
Notifications
You must be signed in to change notification settings - Fork 24
Closes #5372: Use PHP 8.5 for dev/CI tools. #5373
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4e596f7
Closes #5372: Use PHP 8.5 for dev/CI tools.
joeparsons 5dfb914
Address PHP 8.5 deprecation (Call to deprecated method setAccessible(…
joeparsons 3308295
Add patch for xmlsitemap
joeparsons 99f1dfe
Add PHP 8.5 patch for google_tag.
joeparsons 3b94038
Update az_publication for "Exception: Deprecated function: Case state…
joeparsons 631cefd
Add patch for seboettg/citeproc-php
joeparsons d56244a
Include watchdog:show output in CI logs.
joeparsons e2b417a
Revert unintentional change to existing patch URL
joeparsons 09c11c1
Add PHP 8.5 patch for entity_embed.
joeparsons 2d8af66
Allow watchdog:show command to have a non-zero exit code.
joeparsons 32ce920
Revert changes to phpunit.xml.dist.
joeparsons 0bcd8cc
Use static patches.
joeparsons 2cb2197
Merge branch 'main' into issue/5372-php-8-5-dev-ci
joeparsons b55e39b
Merge branch 'main' into issue/5372-php-8-5-dev-ci
joeparsons 99b1216
Add PHP 8.5 patch for pathauto.
joeparsons bfecafb
Add simple test that reproduces error without Pathauto patch. Fix lin…
joeparsons File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
modules/custom/az_flexible_page/tests/src/Functional/FlexiblePageTest.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| <?php | ||
|
|
||
| namespace Drupal\Tests\az_flexible_page\Functional; | ||
|
|
||
| use Drupal\Tests\az_core\Functional\QuickstartFunctionalTestBase; | ||
| use Drupal\Tests\node\Traits\ContentTypeCreationTrait; | ||
| use PHPUnit\Framework\Attributes\Group; | ||
| use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses; | ||
|
|
||
| /** | ||
| * Run tests of paragraph bundles. | ||
| */ | ||
| #[Group('az_flexible_page')] | ||
| #[RunTestsInSeparateProcesses] | ||
| class FlexiblePageTest extends QuickstartFunctionalTestBase { | ||
|
|
||
| use ContentTypeCreationTrait; | ||
|
|
||
| /** | ||
| * The profile to install as a basis for testing. | ||
| * | ||
| * @var string | ||
| */ | ||
| protected $profile = 'az_quickstart'; | ||
|
|
||
| /** | ||
| * @var bool | ||
| */ | ||
| protected $strictConfigSchema = FALSE; | ||
|
|
||
| /** | ||
| * @var string | ||
| */ | ||
| protected $defaultTheme = 'az_barrio'; | ||
|
|
||
| /** | ||
| * Modules to enable. | ||
| * | ||
| * @var string[] | ||
| */ | ||
| protected static $modules = [ | ||
| 'az_paragraphs', | ||
| 'az_paragraphs_html', | ||
| 'az_paragraphs_text', | ||
| 'az_flexible_page', | ||
| 'node', | ||
| ]; | ||
|
|
||
| /** | ||
| * A user with permission to work with pages. | ||
| * | ||
| * @var \Drupal\user\UserInterface | ||
| */ | ||
| protected $user; | ||
|
|
||
| /** | ||
| * {@inheritdoc} | ||
| */ | ||
| protected function setUp(): void { | ||
| parent::setUp(); | ||
|
|
||
| // Set up our initial permissions. | ||
| $this->user = $this->drupalCreateUser([ | ||
| 'create az_flexible_page content', | ||
| ]); | ||
|
|
||
| $this->drupalLogin($this->user); | ||
| } | ||
|
|
||
| /** | ||
| * Test the process of creating a flexible page node. | ||
| */ | ||
| public function testFlexiblePageCreation() { | ||
| $this->drupalGet('node/add/az_flexible_page'); | ||
| $this->assertSession()->statusCodeEquals(200); | ||
| $this->assertSession()->addressEquals('node/add/az_flexible_page'); | ||
| // Create a Flexible page. | ||
| $edit = []; | ||
| $edit['title[0][value]'] = $this->randomMachineName(8); | ||
| $this->drupalGet('node/add/az_flexible_page'); | ||
| $this->submitForm($edit, 'Save'); | ||
|
|
||
| // Check that the Flexible page has been created. | ||
| $this->assertSession()->pageTextContains('Page ' . $edit['title[0][value]'] . ' has been created.'); | ||
|
|
||
| // Check that the Flexible page exists in the database. | ||
| $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); | ||
| $this->assertNotEmpty($node, 'Flexible page found in database.'); | ||
|
|
||
| // Verify that Flexible page loads with the correct title. | ||
| $this->drupalGet('node/' . $node->id()); | ||
| $this->assertSession()->pageTextContains($edit['title[0][value]']); | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.