Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -2,20 +2,27 @@ language: php
sudo: false
php: [5.3, 5.4, 5.5, 5.6, hhvm]
php: [5.3, 5.4, 5.5, 5.6, 7.0, hhvm]
matrix:
include:
# Test against LTS versions
- php: 5.5
env: SYMFONY_VERSION='2.3.*'
- php: 5.5
env: SYMFONY_VERSION='2.5.*@dev'
env: SYMFONY_VERSION='2.7.*'
- php: 5.6
env: SYMFONY_VERSION='2.8.*'
# Test against dev versions of dependencies
- php: 5.6
env: DEPENDENCIES='dev'
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require -n --no-update symfony/symfony=$SYMFONY_VERSION; fi;'
install:

View file

@ -1,3 +1,16 @@
1.3.2 / 2016-03-05
==================
Testsuite:
* Disallowed failures on PHP 7 on Travis (tests were passing since a long time)
* Added HTML escaping of submitted values in the driver testsuite web-fixtures
1.3.1 / 2016-01-19
==================
* Added Symfony 3.0 compatibility
1.3.0 / 2015-09-21
==================

View file

@ -16,13 +16,13 @@
"require": {
"php": ">=5.3.6",
"behat/mink": "~1.7@dev",
"symfony/browser-kit": "~2.3",
"symfony/dom-crawler": "~2.3"
"behat/mink": "^1.7.1@dev",
"symfony/browser-kit": "~2.3|~3.0",
"symfony/dom-crawler": "~2.3|~3.0"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7",
"symfony/phpunit-bridge": "~2.7|~3.0",
"silex/silex": "~1.2"
},

View file

@ -807,8 +807,15 @@ class BrowserKitDriver extends CoreDriver
*/
private function getCrawlerNode(Crawler $crawler)
{
$crawler->rewind();
$node = $crawler->current();
$node = null;
if ($crawler instanceof \Iterator) {
// for symfony 2.3 compatibility as getNode is not public before symfony 2.4
$crawler->rewind();
$node = $crawler->current();
} else {
$node = $crawler->getNode(0);
}
if (null !== $node) {
return $node;

View file

@ -6,7 +6,7 @@ cache:
directories:
- $HOME/.composer/cache/files
php: [5.3, 5.4, 5.5, 5.6, hhvm]
php: [5.3, 5.4, 5.5, 5.6, 7.0, hhvm]
before_install:
# Force using Goutte 2 on HHVM for now because Guzzle 6 is broken there

View file

@ -1,3 +1,10 @@
1.2.1 / 2016-03-05
==================
Testsuite:
* Added testing on PHP 7
1.2.0 / 2015-09-21
==================

View file

@ -22,7 +22,7 @@
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7"
"symfony/phpunit-bridge": "~2.7|~3.0"
},
"autoload": {

View file

@ -1,5 +0,0 @@
*.tgz
*.phar
phpunit.xml
composer.lock
vendor

View file

@ -1,28 +0,0 @@
language: php
sudo: false
php: [5.3, 5.4, 5.5, 5.6, 7.0, hhvm]
matrix:
fast_finish: true
include:
- php: 5.3
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' SYMFONY_DEPRECATIONS_HELPER=weak
allow_failures:
- php: 7.0
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- composer self-update
install:
- composer update $COMPOSER_FLAGS
script: phpunit -v --coverage-clover=coverage.clover
after_script:
- if [[ "7.0" != "$TRAVIS_PHP_VERSION" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

View file

@ -1,3 +1,28 @@
1.7.1 / 2016-03-XX
==================
Bug fixes:
* Refactored the CssSelector to use the new API of the Symfony CssSelector component to be compatible with Symfony 3
Testsuite:
* Disallowed failures on PHP 7 on Travis (tests were passing since a long time)
Driver testsuite:
* Fixed the driver testsuite to account for driver inheritance when checking recommended practices
* Added a test for cookie values with semicolon, to ensure all drivers support it
* Improved the window resize test to consider headless browsers
* Fixed the compatibility of the testsuite with PHPUnit 5
* Added a test ensuring that `wait()` always return a boolean even when the JS expression does not cast the value
* Added HTML escaping of submitted values in the driver testsuite web-fixtures
Misc:
* Removed the Mink testsuite from archives generated by Github to make them smaller
1.7.0 / 2015-09-20
==================

View file

@ -1,22 +0,0 @@
# Contributing
Mink is an open source, community-driven project. If you'd like to contribute, feel free to do this, but remember to follow these few simple rules:
## Submitting an issues
- __Driver-related__ issues must be reported in the corresponding driver repository
- A reproducible example is required for every bug report, otherwise it will most probably be __closed without warning__
- If you are going to make a big, substantial change, let's discuss it first
## Working with Pull Requests
1. Create your feature addition or a bug fix branch based on `master` branch in your repository's fork.
2. Make necessary changes, but __don't mix__ code reformatting with code changes on topic.
3. Add tests for those changes (please look into `tests/` folder for some examples). This is important so we don't break it in a future version unintentionally.
4. Commit your code, but do not mess with `CHANGES.md`.
5. Squash your commits by topic to preserve a clean and readable log.
6. Create Pull Request.
# Running tests
Make sure that you don't break anything with your changes by running:
```bash
$> phpunit
```

View file

@ -16,11 +16,11 @@
"require": {
"php": ">=5.3.1",
"symfony/css-selector": "~2.1"
"symfony/css-selector": "~2.1|~3.0"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7"
"symfony/phpunit-bridge": "~2.7|~3.0"
},
"suggest": {

View file

@ -1,125 +0,0 @@
; Default configuration file for PHPDoctor
; This config file will cause PHPDoctor to generate API documentation of
; itself.
; PHPDoctor settings
; -----------------------------------------------------------------------------
; Names of files to parse. This can be a single filename, or a comma separated
; list of filenames. Wildcards are allowed.
files = "*.php"
; Names of files or directories to ignore. This can be a single filename, or a
; comma separated list of filenames. Wildcards are NOT allowed.
ignore = "CVS, .svn, .git, _compiled"
; The directory to look for files in, if not used the PHPDoctor will look in
; the current directory (the directory it is run from).
source_path = "./src"
; If you do not want PHPDoctor to look in each sub directory for files
; uncomment this line.
;subdirs = off
; Set how loud PHPDoctor is as it runs. Quiet mode suppresses all output other
; than warnings and errors. Verbose mode outputs additional messages during
; execution.
;quiet = on
;verbose = on
; Select the doclet to use for generating output.
doclet = standard
;doclet = debug
; The directory to find the doclet in. Doclets are expected to be in a
; directory named after themselves at the location given.
;doclet_path = ./doclets
; The directory to find taglets in. Taglets allow you to make PHPDoctor handle
; new tags and to alter the behavour of existing tags and their output.
;taglet_path = ./taglets
; If the code you are parsing does not use package tags or not all elements
; have package tags, use this setting to place unbound elements into a
; particular package.
default_package = "Behat\Mink"
; Specifies the name of a HTML file containing text for the overview
; documentation to be placed on the overview page. The path is relative to
; "source_path" unless an absolute path is given.
overview = readme.html
; Package comments will be looked for in a file named package.html in the same
; directory as the first source file parsed in that package or in the directory
; given below. If package comments are placed in the directory given below then
; they should be named "<packageName>.html".
package_comment_dir = ./
; Parse out global variables and/or global constants?
;globals = off
;constants = off
; Generate documentation for all class members
;private = on
; Generate documentation for public and protected class members
;protected = on
; Generate documentation for only public class members
public = on
; Use the PEAR compatible handling of the docblock first sentence
;pear_compat = on
; Standard doclet settings
; -----------------------------------------------------------------------------
; The directory to place generated documentation in. If the given path is
; relative to it will be relative to "source_path".
d = "api"
; Specifies the title to be placed in the HTML <title> tag.
windowtitle = "Behat\Mink"
; Specifies the title to be placed near the top of the overview summary file.
doctitle = "Behat\Mink: browser emulators abstraction library for PHP"
; Specifies the header text to be placed at the top of each output file. The
; header will be placed to the right of the upper navigation bar.
header = "Behat\Mink"
; Specifies the footer text to be placed at the bottom of each output file. The
; footer will be placed to the right of the lower navigation bar.
footer = "Behat\Mink"
; Specifies the text to be placed at the bottom of each output file. The text
; will be placed at the bottom of the page, below the lower navigation bar.
;bottom = "This document was generated by <a href="http://phpdoctor.sourceforge.net/">PHPDoctor: The PHP Documentation Creator</a>"
; Create a class tree?
tree = on

View file

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="Behat Mink test suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
</phpunit>

View file

@ -11,6 +11,7 @@
namespace Behat\Mink\Selector;
use Symfony\Component\CssSelector\CssSelector as CSS;
use Symfony\Component\CssSelector\CssSelectorConverter;
/**
* CSS selector engine. Transforms CSS to XPath.
@ -32,6 +33,14 @@ class CssSelector implements SelectorInterface
throw new \InvalidArgumentException('The CssSelector expects to get a string as locator');
}
// Symfony 2.8+ API
if (class_exists('Symfony\Component\CssSelector\CssSelectorConverter')) {
$converter = new CssSelectorConverter();
return $converter->toXPath($locator);
}
// old static API for Symfony 2.7 and older
return CSS::toXPath($locator);
}
}