File tree Expand file tree Collapse file tree 4 files changed +37
-32
lines changed Expand file tree Collapse file tree 4 files changed +37
-32
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,25 @@ before_install:
7171 - composer self-update --1
7272
7373install :
74+ - |
75+ composer config repositories."1" "{
76+ \"type\": \"package\",
77+ \"package\": {
78+ \"name\": \"gravityforms/gravityforms\",
79+ \"version\": \"2.4.21.3\",
80+ \"type\": \"wordpress-plugin\",
81+ \"dist\": {
82+ \"type\": \"zip\",
83+ \"url\": \"https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key=$GRAVITYFORMS_KEY\"
84+ },
85+ \"require\": {
86+ \"composer/installers\": \"^1.4\",
87+ \"gotoandplay/gravityforms-composer-installer\": \"^2.3\"
88+ }
89+ }
90+ }"
7491 - npm install
92+ - composer require --dev gravityforms/gravityforms:2.4.21.3
7593
7694script :
7795 - npm run lint
Original file line number Diff line number Diff line change 88 {
99 "type" : " composer" ,
1010 "url" :" https://wpackagist.org"
11- },
12- {
13- "type" : " package" ,
14- "package" : {
15- "name" : " gravityforms/gravityforms" ,
16- "version" : " 2.4.21.3" ,
17- "type" : " wordpress-plugin" ,
18- "dist" : {
19- "type" : " zip" ,
20- "url" : " https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key={%GRAVITYFORMS_KEY}"
21- },
22- "require" : {
23- "composer/installers" : " ^1.4" ,
24- "gotoandplay/gravityforms-composer-installer" : " ^2.3"
25- }
26- }
2711 }
2812 ],
2913 "require" : {
4125 "wpackagist-plugin/advanced-custom-fields" : " 5.8.12" ,
4226 "wpackagist-plugin/easy-digital-downloads" : " ^2.9.23" ,
4327 "wpackagist-plugin/user-switching" : " ^1.5.5" ,
44- "gravityforms/gravityforms" : " 2.4.21.3" ,
4528 "wpsh/local" : " ^0.2.3"
4629 },
4730 "config" : {
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ public function setUp() {
2626
2727 $ this ->mock ->register ();
2828
29+ if ( ! $ this ->mock ->is_dependency_satisfied () ) {
30+ $ this ->markTestSkipped ( 'A GravityForms is needed to run this test. ' );
31+ }
32+
2933 // Load needed Gravity Forms files.
3034 require_once ( \GFCommon::get_base_path () . '/form_settings.php ' );
3135 require_once ( \GFCommon::get_base_path () . '/notification.php ' );
You can’t perform that action at this time.
0 commit comments