Skip to content

Commit 0e49bd0

Browse files
committed
integration pgsql
1 parent 8290ade commit 0e49bd0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
strategy:
136136
matrix:
137137
php_version: ['8.1', '8.2', '8.3', '8.4']
138+
config: ['phpunit.xml.dist', 'phpunit-pgsql.xml.dist']
138139
steps:
139140
- uses: actions/checkout@v4
140141
- name: Start LDAP container
@@ -148,7 +149,7 @@ jobs:
148149
- name: Run Integration tests
149150
run: |
150151
sleep 3
151-
./libraries/vendor/bin/phpunit --testsuite Integration
152+
./libraries/vendor/bin/phpunit --testsuite Integration --configuration ${{ matrix.config }}
152153
- name: Stop LDAP container
153154
uses: docker://docker
154155
with:

tests/System/integration/plugins/system/sef/SefPlugin.cy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('Test that the sef system plugin', () => {
1616

1717
it('can process if option \'sef\' disabled', () => {
1818
cy.config_setParameter('sef', false)
19+
.then(() => cy.wait(2000))
1920
.then(() => {
2021
cy.request({ url: '/index.php?option=com_users&view=login', followRedirect: false })
2122
.then((response) => {
@@ -30,6 +31,7 @@ describe('Test that the sef system plugin', () => {
3031

3132
it('can process if option \'enforcesuffix\' enabled', () => {
3233
cy.config_setParameter('sef_suffix', true)
34+
.then(() => cy.wait(2000))
3335
.then(() => {
3436
cy.request({ url: '/index.php/component/users/login', followRedirect: false })
3537
.then((response) => {

tests/System/support/commands/config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Cypress.Commands.add('config_setParameter', (parameter, value) => {
1313
const content = fileContent.replace(regex, `public $${parameter} = ${newValue};`);
1414

1515
// Write the modified content back to the configuration file relative to the CMS root folder
16-
return cy.task('writeRelativeFile', { path: 'configuration.php', content }).then(() => cy.wait(2000));
16+
return cy.task('writeRelativeFile', { path: 'configuration.php', content });
1717
});
1818
});

0 commit comments

Comments
 (0)