Skip to content
GitLab
Explore
Sign in
project
drupal
Compare revisions
ecb1f7acc2dfab679b1473b3065d431fc6654095 to 8.1.x
Hide whitespace changes
Inline
Side-by-side
core/modules/migrate/src/Plugin/migrate/process/Migration.php
View file @
614ba415
...
...
@@ -16,6 +16,8 @@
/**
* Calculates the value of a property based on a previous migration.
*
* @link https://www.drupal.org/node/2149801 Online handbook documentation for migration process plugin @endlink
*
* @MigrateProcessPlugin(
* id = "migration"
* )
...
...
core/modules/migrate/src/Plugin/migrate/process/Route.php
View file @
614ba415
...
...
@@ -11,7 +11,10 @@
use
Drupal\migrate\Row
;
/**
* @MigrateProcessPlugin(
*
* @link https://www.drupal.org/node/2750777 Online handbook documentation for route process plugin @endlink
*
* * @MigrateProcessPlugin(
* id = "route"
* )
*/
...
...
core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php
View file @
614ba415
...
...
@@ -11,6 +11,8 @@
/**
* If the source evaluates to empty, we skip processing or the whole row.
*
* @link https://www.drupal.org/node/2228793 Online handbook documentation for skip_on_empty process plugin @endlink
*
* @MigrateProcessPlugin(
* id = "skip_on_empty"
* )
...
...
core/modules/migrate/src/Plugin/migrate/process/SkipRowIfNotSet.php
View file @
614ba415
...
...
@@ -10,6 +10,8 @@
/**
* If the source evaluates to empty, we skip the current row.
*
* @link https://www.drupal.org/node/2345935 Online handbook documentation for skip_row_if_not_set process plugin @endlink
*
* @MigrateProcessPlugin(
* id = "skip_row_if_not_set",
* handle_multiples = TRUE
...
...
core/modules/migrate/src/Plugin/migrate/process/StaticMap.php
View file @
614ba415
...
...
@@ -12,7 +12,7 @@
/**
* This plugin changes the current value based on a static lookup map.
*
* @
see
https://www.drupal.org/node/2143521
* @
link
https://www.drupal.org/node/2143521
Online handbook documentation for static_map process plugin @endlink
*
* @MigrateProcessPlugin(
* id = "static_map"
...
...
core/modules/migrate/src/Plugin/migrate/process/Substr.php
View file @
614ba415
...
...
@@ -11,6 +11,8 @@
/**
* This plugin returns a substring of the current value.
*
* @link https://www.drupal.org/node/2771965 Online handbook documentation for substr process plugin @endlink
*
* @MigrateProcessPlugin(
* id = "substr"
* )
...
...
core/modules/toolbar/js/views/ToolbarVisualView.js
View file @
614ba415
...
...
@@ -23,9 +23,9 @@
};
return
{
'
click .toolbar-bar .toolbar-tab
.trigger
'
:
'
onTabClick
'
,
'
click .toolbar-bar .toolbar-tab
'
:
'
onTabClick
'
,
'
click .toolbar-toggle-orientation button
'
:
'
onOrientationToggleClick
'
,
'
touchend .toolbar-bar .toolbar-tab
.trigger
'
:
touchEndToClick
,
'
touchend .toolbar-bar .toolbar-tab
'
:
touchEndToClick
,
'
touchend .toolbar-toggle-orientation button
'
:
touchEndToClick
};
},
...
...
core/phpunit.xml.dist
View file @
614ba415
<?xml version="1.0" encoding="UTF-8"?>
<!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. -->
<!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
result printer that links to the html output results for functional tests.
Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
using the command line you can add
- -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there
should be no spaces between the hyphens).
<!-- PHPUnit expects functional tests to be run with either a privileged user
or your current system user. See core/tests/README.md and
https://www.drupal.org/node/2116263 for details.
-->
<phpunit
bootstrap=
"tests/bootstrap.php"
colors=
"true"
beStrictAboutTestsThatDoNotTestAnything=
"true"
beStrictAboutOutputDuringTests=
"true"
beStrictAboutChangesToGlobalState=
"true"
checkForUnintentionallyCoveredCode=
"false"
>
<!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
result printer that links to the html output results for functional tests.
Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
using the command line you can add
- -printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note
there should be no spaces between the hyphens).
-->
<php>
<!-- Set error reporting to E_ALL. -->
<ini
name=
"error_reporting"
value=
"32767"
/>
...
...
core/tests/README.md
View file @
614ba415
...
...
@@ -13,3 +13,36 @@
./vendor/bin/phpunit -c core --testsuite functional
./vendor/bin/phpunit -c core --testsuite functional-javascript
```
Note: functional tests have to be invoked with a user in the same group as the
web server user. You can either configure Apache (or nginx) to run as your own
system user or run tests as a privileged user instead.
To develop locally, a straigtforward - but also less secure - approach is to run
tests as your own system user. To achieve that, change the default Apache user
to run as your system user. Typically, you'd need to modify
`/etc/apache2/envvars`
on Linux or
`/etc/apache2/httpd.conf`
on Mac.
Example for Linux:
```
export APACHE_RUN_USER=<your-user>
export APACHE_RUN_GROUP=<your-group>
```
Example for Mac:
```
User <your-user>
Group <your-group>
```
If the default user is e.g.
`www-data`
, the above functional tests will have to
be invoked with sudo instead:
```
export SIMPLETEST_DB='mysql://root@localhost/dev_d8'
export SIMPLETEST_BASE_URL='http://d8.dev'
sudo -u www-data ./vendor/bin/phpunit -c core --testsuite functional
sudo -u www-data ./vendor/bin/phpunit -c core --testsuite functional-javascript
```
Prev
1
2
Next