Skip to content

Commit

Permalink
fix: minimum PHP version 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Apr 2, 2022
1 parent 9d29f40 commit 49ed1a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/php-compatibility.yml
Expand Up @@ -11,7 +11,8 @@ on:

jobs:
php-compatibility:
name: PHP minimum 7.0
name: PHP minimum 5.6

runs-on: ubuntu-latest

steps:
Expand All @@ -29,4 +30,4 @@ jobs:
run: composer install

- name: Run PHP Compatibility
run: vendor/bin/phpcs insert-special-characters.php --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.0-
run: vendor/bin/phpcs insert-special-characters.php --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6-
6 changes: 3 additions & 3 deletions tests/cypress/integration/insert-character-in-post.test.js
Expand Up @@ -17,7 +17,7 @@ describe( 'Insert character in post', () => {
.click();

cy.get( 'body' ).then( ( $body ) => {
// WP 5.2
// WP 5.4
if ( $body.find( '.nux-dot-tip__disable' ).length > 0 ) {
cy.get( '.nux-dot-tip__disable' ).click();
} else {
Expand All @@ -29,7 +29,7 @@ describe( 'Insert character in post', () => {
* Click block inserter.
*/
cy.get( 'body' ).then( ( $body ) => {
// WP 5.2
// WP 5.4
if (
$body.find(
'.edit-post-header-toolbar .block-editor-inserter__toggle'
Expand All @@ -47,7 +47,7 @@ describe( 'Insert character in post', () => {
* Search for paragraph block in inserter.
*/
cy.get( 'body' ).then( ( $body ) => {
// WP 5.2
// WP 5.4
if ( $body.find( '.block-editor-inserter__search' ).length > 0 ) {
cy.get( '.block-editor-inserter__search' ).type( 'Paragraph' );
} else {
Expand Down

0 comments on commit 49ed1a2

Please sign in to comment.