Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GravityForms dependencies updated.
Browse files Browse the repository at this point in the history
kidunot89 committed Feb 22, 2021
1 parent 26e0f36 commit 71ce5fc
Showing 6 changed files with 1,031 additions and 406 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
.idea
.env
.DS_Store
/node_modules/
/vendor/
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -22,9 +22,9 @@ jobs:
env:
WORDPRESS_IMAGE_VERSION: php5.6

- name: Test with PHP 7.2
- name: Test with PHP 7.3
env:
WORDPRESS_IMAGE_VERSION: php7.2
WORDPRESS_IMAGE_VERSION: php7.3

- name: Test Release Bundle
script: npm run release
25 changes: 19 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,23 @@
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
"url":"https://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "gravityforms/gravityforms",
"version": "2.4.21.3",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key={%GRAVITYFORMS_KEY}"
},
"require": {
"composer/installers": "^1.4",
"gotoandplay/gravityforms-composer-installer": "^2.3"
}
}
}
],
"require": {
@@ -25,15 +41,12 @@
"wpackagist-plugin/advanced-custom-fields": "5.8.12",
"wpackagist-plugin/easy-digital-downloads": "^2.9.23",
"wpackagist-plugin/user-switching": "^1.5.5",
"wp-premium/gravityforms": "^2.4.17",
"gravityforms/gravityforms": "2.4.21.3",
"wpsh/local": "^0.2.3"
},
"config": {
"process-timeout": 600,
"sort-packages": true,
"platform": {
"php": "5.6.20"
}
"sort-packages": true
},
"extra": {
"wordpress-install-dir": "local/public",
1,350 changes: 978 additions & 372 deletions composer.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
@@ -15,9 +15,9 @@ services:
PHP_VERSION: "5.6"
XDEBUG_VERSION: "2.5.5"

wordpress_php7.2:
image: xwpco/stream-wordpress:php7.2
wordpress_php7.3:
image: xwpco/stream-wordpress:php7.3
build:
context: ./local/docker/wordpress
args:
PHP_VERSION: "7.2"
PHP_VERSION: "7.3"
51 changes: 28 additions & 23 deletions tests/tests/connectors/test-class-connector-gravityforms.php
Original file line number Diff line number Diff line change
@@ -25,6 +25,11 @@ public function setUp() {
->getMock();

$this->mock->register();

// Load needed Gravity Forms files.
require_once( \GFCommon::get_base_path() . '/form_settings.php' );
require_once( \GFCommon::get_base_path() . '/notification.php' );
require_once( \GFCommon::get_base_path() . '/export.php' );
}

/**
@@ -140,7 +145,7 @@ public function test_callback_gform_after_save_form() {
do_action( 'gform_after_save_form', $form_meta, true, array() );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_after_save_form' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_after_save_form' ) );
}

public function test_callback_gform_pre_confirmation_save() {
@@ -181,7 +186,7 @@ public function test_callback_gform_pre_confirmation_save() {
\gf_apply_filters( array( 'gform_pre_confirmation_save', $form_id ), $confirmation, $form, true );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_pre_confirmation_save' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_pre_confirmation_save' ) );
}

public function test_callback_gform_pre_notification_save() {
@@ -221,7 +226,7 @@ public function test_callback_gform_pre_notification_save() {
\gf_apply_filters( array( 'gform_pre_notification_save', $form_id ), $notification, $form, true );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_pre_notification_save' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_pre_notification_save' ) );
}

public function test_callback_gform_pre_notification_deleted() {
@@ -261,7 +266,7 @@ public function test_callback_gform_pre_notification_deleted() {
\GFNotification::delete_notification( $notification['id'], $form_id );

// Check callback test action..
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_pre_notification_deleted' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_pre_notification_deleted' ) );
}

public function test_callback_gform_pre_confirmation_deleted() {
@@ -302,7 +307,7 @@ public function test_callback_gform_pre_confirmation_deleted() {
\GFFormSettings::delete_confirmation( $confirmation['id'], $form_id );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_pre_confirmation_deleted' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_pre_confirmation_deleted' ) );
}

public function test_check() {
@@ -373,8 +378,8 @@ public function test_check() {
update_option( 'rg_gforms_key', '' );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_add_option' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_update_option' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_add_option' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_update_option' ) );
}

public function test_callback_gform_delete_lead() {
@@ -426,7 +431,7 @@ public function test_callback_gform_delete_lead() {
\GFFormsModel::delete_entry( $entry_id );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_delete_lead' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_delete_lead' ) );
}

public function test_callback_gform_post_note_added() {
@@ -486,7 +491,7 @@ function( $args ) {
\GFFormsModel::add_note( $entry_id, $user_id, 'johndoe', $note, 'user' );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_note_added' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_note_added' ) );
}

public function test_callback_gform_pre_note_deleted() {
@@ -560,7 +565,7 @@ function( $id ) use ( &$note_id ) {
\GFFormsModel::delete_note( $note_id );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_pre_note_deleted' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_pre_note_deleted' ) );
}

public function test_callback_gform_update_status() {
@@ -634,7 +639,7 @@ public function test_callback_gform_update_status() {
do_action( 'gform_update_status', $entry_id, 'active', 'trash' );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_update_status' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_update_status' ) );
}

public function test_callback_gform_update_is_read() {
@@ -704,7 +709,7 @@ public function test_callback_gform_update_is_read() {
\GFFormsModel::update_entry_property( $entry_id, 'is_read', 0 );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_update_is_read' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_update_is_read' ) );
}

public function test_callback_gform_update_is_starred() {
@@ -774,7 +779,7 @@ public function test_callback_gform_update_is_starred() {
\GFFormsModel::update_entry_property( $entry_id, 'is_starred', 0 );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_update_is_starred' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_update_is_starred' ) );
}

public function test_log_form_action() {
@@ -951,13 +956,13 @@ public function test_log_form_action() {
\RGFormsModel::delete_form( $form_id );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_before_delete_form' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_form_trashed' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_form_restored' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_form_activated' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_form_deactivated' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_form_duplicated' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_form_views_deleted' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_before_delete_form' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_form_trashed' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_form_restored' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_form_activated' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_form_deactivated' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_form_duplicated' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_form_views_deleted' ) );
}

public function test_callback_gform_post_export_entries() {
@@ -989,7 +994,7 @@ public function test_callback_gform_post_export_entries() {
\GFExport::start_export( $form, 0, $export_id );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_post_export_entries' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_post_export_entries' ) );
}

public function test_callback_gform_forms_post_import() {
@@ -1021,7 +1026,7 @@ public function test_callback_gform_forms_post_import() {
\GFExport::import_json( $forms_json );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_forms_post_import' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_forms_post_import' ) );
}

public function test_callback_gform_export_form() {
@@ -1049,6 +1054,6 @@ public function test_callback_gform_export_form() {
\GFExport::prepare_forms_for_export( $forms );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_gform_export_form' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_gform_export_form' ) );
}
}

0 comments on commit 71ce5fc

Please sign in to comment.