Comments (8)
Take into account that I have not used Behat until a few days ago, and Travis until a few hours ago, so no doubt it could be something clearly simple and stupid ;)
from drupal_ti.
Maybe you need the drupal driver instead of the drush driver?
I don't think calling functions like module_enable() directly works - maybe only as a side effect.
What probably works though for this case is:
drush = $this->getDrush();
drush->drush('pm-enable', array('module_name'));
from drupal_ti.
So, from what I can tell, Drupal is being bootstraped correctly in the Travis CI instance, where it is locally.
https://travis-ci.org/Decipher/test/jobs/73480577#L428 is the output of print_r($GLOBALS);
, which is missing any evidence of a bootstraped Drupal install. Locally I get essentially the same results as I would running the command from within Drupal.
As such, at that particular point I can't run any native Drupal functions.
from drupal_ti.
@Decipher I am not sure you are supposed to be when using the drush driver:
https://github.com/Decipher/test/blob/master/tests/behat/behat.yml.dist#L16-L21
is missing something as far as I can tell:
https://github.com/panopoly/panopoly/pull/2/files#diff-63f34abbeedb18244e565e4c2b7eb2bcR12
I used drupal_root as well.
And I think without that, it can't find the drupal_root.
from drupal_ti.
Thanks, I think that was exactly what I needed. Appreciate the help.
from drupal_ti.
I am happy to accept a PR for adding that to the default behat.yml.dist file in drupal_ti for the test modules.
And also happy to accept a patch testing that by e.g. enabling drupal_ti_test via behat.
Or lets say it like that:
We probably should write a test, so if you don't I will probably do so in the future, opening an issue for that now.
from drupal_ti.
Opened: #32
from drupal_ti.
Sounds good. I would have, but I had already turned in for the night. Timezones.
from drupal_ti.
Related Issues (20)
- Does not work with 8.3.x branch HOT 5
- [Support - Request] Best way to enable test module using Behat HOT 1
- Doesn't work with Drupal 8.6
- Composer 1.8.x - drupal-ti: command not found
- Project Maintenance Inquiry HOT 3
- Getting error "Canβt connect to local MySQL server through socket"
- Drupal 8.8 on travis: Script "drupal-phpunit-upgrade" is not defined in this package
- Add maintainers HOT 4
- Incorrect drush version installed after specifying DRUPAL_TI_DRUSH_VERSION
- phpunit Kernel tests are run twice HOT 2
- Document DRUPAL_TI_DRUPAL_CORE_VERSION parameter
- Build error, requirements could not be resolved HOT 3
- Tag 1.4.3 HOT 2
- Error running my first test HOT 7
- Problem with BrowserTestBase HOT 1
- Add a functional test run via phpunit-core to drupal 8 test suite
- New icon for drupal_ti HOT 1
- [Support - with Solution] Best place to set BEHAT_PARAMS HOT 5
- Install a non-Drupal library in vendor/ HOT 3
- Module linking with composer means travis test wrong branch HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal_ti.