Skip to content

Commit 5f5bd4f

Browse files
committed
Merge pull request magento#603 from magento-api/pull-request
[API] Bug Fixes
2 parents 51d0453 + dd12ccf commit 5f5bd4f

File tree

89 files changed

+921
-600
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+921
-600
lines changed

Diff for: .travis.yml

+23-54
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,39 @@
11
sudo: required
22
dist: trusty
3-
3+
addons:
4+
apt:
5+
packages:
6+
- mysql-server-5.6
7+
- mysql-client-core-5.6
8+
- mysql-client-5.6
9+
- postfix
410
language: php
511
php:
612
- 5.5
713
- 5.6
814
- 7.0
915
env:
10-
- TEST_SUITE=unit
11-
- TEST_SUITE=integration_part_1
12-
- TEST_SUITE=integration_part_2
13-
- TEST_SUITE=integration_integrity
14-
- TEST_SUITE=static
16+
global:
17+
- COMPOSER_BIN_DIR=~/bin
18+
- INTEGRATION_SETS=2
19+
matrix:
20+
- TEST_SUITE=unit
21+
- TEST_SUITE=integration INTEGRATION_INDEX=1
22+
- TEST_SUITE=integration INTEGRATION_INDEX=2
23+
- TEST_SUITE=static
1524
cache:
1625
apt: true
17-
directories:
18-
- $HOME/.composer/cache
19-
- $HOME/.cache/bin
26+
directories: $HOME/.composer/cache
2027
matrix:
2128
exclude:
2229
- php: 5.6
2330
env: TEST_SUITE=static
2431
- php: 7.0
2532
env: TEST_SUITE=static
26-
before_install:
27-
- sudo apt-get update -qq
28-
- sudo apt-get install -y -qq postfix
29-
- sh -c 'if [ "$CASHER_DIR" ]; then
30-
if [ -x $HOME/.cache/bin/composer ]; then
31-
$HOME/.cache/bin/composer self-update; echo '';
32-
else
33-
mkdir -p $HOME/.cache/bin;
34-
curl --connect-timeout 30 -sS https://getcomposer.org/installer
35-
| php -- --install-dir $HOME/.cache/bin/ --filename composer;
36-
fi
37-
fi'
38-
- export PATH="$HOME/.cache/bin:$PATH"
39-
before_script:
40-
# Mock mail
41-
- sudo service postfix stop
42-
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
43-
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
44-
# Disable xDebug
45-
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
46-
# Install MySQL 5.6, create DB for integration tests
47-
- >
48-
sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ] || [ '$TEST_SUITE' = 'integration_part_2' ] || [ '$TEST_SUITE' = 'integration_integrity' ]; then
49-
sudo apt-get remove -y -qq --purge mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5;
50-
sudo apt-get -y -qq autoremove;
51-
sudo apt-get -y -qq autoclean;
52-
sudo apt-get install -y -qq mysql-server-5.6 mysql-client-5.6;
53-
mysql -uroot -e 'SET @@global.sql_mode = NO_ENGINE_SUBSTITUTION; CREATE DATABASE magento_integration_tests;';
54-
mv dev/tests/integration/etc/install-config-mysql.travis.php.dist dev/tests/integration/etc/install-config-mysql.php;
55-
fi"
56-
# Change memory_limit for travis
57-
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
58-
- phpenv rehash;
59-
- composer install --no-interaction --prefer-dist
60-
script:
61-
# Unit tests
62-
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist; fi"
63-
# Integration tests
64-
- sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ] || [ '$TEST_SUITE' = 'integration_part_2' ]; then cd dev/tests/integration/; bash IntegationTestsForTravis.sh 2; fi"
65-
- sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.travis1; fi"
66-
- sh -c "if [ '$TEST_SUITE' = 'integration_part_2' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.travis2; fi"
67-
# Integration integrity tests
68-
- sh -c "if [ '$TEST_SUITE' = 'integration_integrity' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.dist testsuite/Magento/Test/Integrity; fi"
69-
# Static tests [Code Style]
70-
- sh -c "if [ '$TEST_SUITE' = 'static' ]; then cd dev/tests/static/; php get_github_changes.php --output-file='$TRAVIS_BUILD_DIR/dev/tests/static/testsuite/Magento/Test/_files/changed_files_ce.txt' --base-path='$TRAVIS_BUILD_DIR' --repo='https://github.com/magento/magento2.git' --branch='develop'; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest'; fi"
33+
before_install: ./dev/travis/before_install.sh
34+
install: composer install --no-interaction --prefer-dist
35+
before_script: ./dev/travis/before_script.sh
36+
script:
37+
- cd dev/tests/$TEST_SUITE
38+
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
39+
- phpunit $TEST_FILTER

Diff for: Gruntfile.js.sample

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ module.exports = function (grunt) {
1212
path = require('path'),
1313
themes = require('./dev/tools/grunt/configs/themes'),
1414
configDir = './dev/tools/grunt/configs',
15-
taskDir = './dev/tools/grunt/tasks';
15+
tasks = grunt.file.expand('./dev/tools/grunt/tasks/*');
1616

17-
[
18-
taskDir + '/mage-minify',
19-
taskDir + '/deploy',
20-
taskDir + '/black-list-generator',
21-
taskDir + '/clean-black-list',
22-
taskDir + '/static',
23-
'time-grunt'
24-
].forEach(function (task) {
17+
tasks = _.map(tasks, function(task){ return task.replace('.js', '') });
18+
tasks.push('time-grunt');
19+
tasks.forEach(function (task) {
2520
require(task)(grunt);
2621
});
2722

Diff for: app/code/Magento/AdminNotification/Model/System/Message/Baseurl.php

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Store\Model\Store;
1010

11+
/**
12+
* @deprecated
13+
*/
1114
class Baseurl implements \Magento\Framework\Notification\MessageInterface
1215
{
1316
/**

Diff for: app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/BaseurlTest.php

-245
This file was deleted.

Diff for: app/code/Magento/AdminNotification/etc/adminhtml/di.xml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<type name="Magento\Framework\Notification\MessageList">
1010
<arguments>
1111
<argument name="messages" xsi:type="array">
12-
<item name="baseurl" xsi:type="string">Magento\AdminNotification\Model\System\Message\Baseurl</item>
1312
<item name="security" xsi:type="string">Magento\AdminNotification\Model\System\Message\Security</item>
1413
<item name="cacheOutdated" xsi:type="string">Magento\AdminNotification\Model\System\Message\CacheOutdated</item>
1514
<item name="media_synchronization_error" xsi:type="string">Magento\AdminNotification\Model\System\Message\Media\Synchronization\Error</item>

Diff for: app/code/Magento/Checkout/view/adminhtml/email/failed_payment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
-->
7-
<!--@subject Payment Transaction Failed Reminder @-->
7+
<!--@subject {{trans "Payment Transaction Failed Reminder"}} @-->
88
<!--@vars {
99
"var billingAddress.format('html')|raw":"Billing Address",
1010
"var checkoutType":"Checkout Type",

Diff for: app/code/Magento/Contact/view/adminhtml/email/submitted_form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
-->
7-
<!--@subject Contact Form@-->
7+
<!--@subject {{trans "Contact Form"}} @-->
88
<!--@vars {
99
"var data.comment":"Comment",
1010
"var data.email":"Sender Email",

0 commit comments

Comments
 (0)