Posts

Showing posts from March, 2017

Behat Integration with Drupal using drupalextension module

Follow the http://behat-drupal-extension.readthedocs.io/en/3.1/requirements.html for requirements and run the Selenium server $ mkdir /Users/gopi/behat $  cd /Users/gopi/behat $ curl http://getcomposer.org/installer | php Composer (version 1.3.2) successfully installed to: /Users/gopi/behat/composer.phar Use it: php composer.phar $ sudo vim composer.json {   "require": {     "drupal/drupal-extension": "~3.0" },   "config": {     "bin-dir": "bin/"   } } save the above code in composer.json $ php composer.phar install $ sudo vim behat.yml default:   suites:     default:       contexts:         - FeatureContext         - Drupal\DrupalExtension\Context\DrupalContext         - Drupal\DrupalExtension\Context\MinkContext         - Drupal\DrupalExtension\Context\MessageContext         - Drupa...

Bash Profile

Example bashprofile: > sudo vim  /Users/myname/.bash_profile export PATH=/usr/local/opt/openssl/bin:$PATH export PATH=/usr/local/git/bin:$PATH export PATH=/Applications/MAMP/bin/php/php5.5.26/bin:$PATH #export PATH="$HOME/.composer/vendor/bin:$PATH" export PATH="$PATH:$HOME/.composer/vendor/bin" alias drupalcs="phpcs --standard=Drupal --extensions='php,module,inc,install,test,profile,theme,js,css,info,txt'" alias drupalcbf="phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md"