This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PASSING - 100% PASSING | |
@about | |
@support | |
NO TAGS - ASK TATIANA ABOUT THE FATE OF THESE | |
@about_do | |
@learn_drupal | |
@login | |
IN PROCESS - ISSUES ARE OPEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Use for wysiwyg fields. | |
* | |
* @When /^I enter "([^"]*)" in the "([^"]*)" text field$/ | |
*/ | |
public function iEnterInTheEditor($text, $field) { | |
$page = $this->getSession()->getPage(); | |
if ($field == 'Body' ) { | |
$iframe_selector = '#edit-body-und-0-value_ifr'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
paths: | |
features: 'features' | |
extensions: | |
Behat\MinkExtension\Extension: | |
goutte: ~ | |
selenium2: ~ | |
base_url: http://drupal.l | |
show_cmd: firefox %s | |
Drupal\DrupalExtension\Extension: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Behat\MinkExtension\Context\MinkContext; | |
// | |
// Require 3rd-party libraries here: | |
// | |
// require_once 'PHPUnit/Autoload.php'; | |
// require_once 'PHPUnit/Framework/Assert/Functions.php'; | |
// | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enter text in textareas - this does not text the wysiwg functionality | |
* | |
* @When /^I enter "([^"]*)" in the "([^"]*)" text field$/ | |
*/ | |
public function iEnterInTheEditor($text, $field) { | |
$page = $this->getMainContext()->getSession()->getPage(); | |
// Define selectors because the body field is handled differently |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
paths: | |
features: 'features' | |
extensions: | |
Behat\MinkExtension\Extension: | |
goutte: ~ | |
selenium2: | |
port: 4445 | |
base_url: http://example.com | |
show_cmd: firefox %s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function checkForImage($url) { | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_exec($ch); | |
// get the content type | |
$mime_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); | |
if (strpos($mime_type, 'image/') === FALSE) { | |
throw new Exception (sprintf('%s did not return an image', $url)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ticket: ... Ticket Link | |
* [x] Ready for review | |
* [ ] Ready for merge | |
... description | |
### Notes | |
... Notes-optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @Given /^I follow meta refresh$/ | |
*/ | |
public function iFollowMetaRefresh() { | |
while ($refresh = $this->getMainContext()->getSession()->getPage()->find('css', 'meta[http-equiv="Refresh"]')) { | |
$content = $refresh->getAttribute('content'); | |
$url = str_replace('0; URL=', '', $content); | |
$this->getMainContext()->getSession()->visit($url); | |
} |