Skip to content

Commit 5973d67

Browse files
Merge pull request #1464 from magento-engcom/develop-prs
[EngCom] Public Pull Requests - MAGETWO-72350: Fix: Use all columns when running tests #10784 - MAGETWO-72349: Fix: Move GitHub-specific documents into .github #10778 - MAGETWO-72344: Enhancement: Configure preferred installation source in composer.json #10774 - MAGETWO-72279: Always use https for Vimeo video's. #10768
2 parents c2810e0 + e08a775 commit 5973d67

File tree

20 files changed

+18
-15
lines changed

20 files changed

+18
-15
lines changed

.github/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Order deny,allow
2+
Deny from all
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.htaccess

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,6 @@
234234
order allow,deny
235235
deny from all
236236
</Files>
237-
<Files CONTRIBUTING.md>
238-
order allow,deny
239-
deny from all
240-
</Files>
241237
<Files COPYING.txt>
242238
order allow,deny
243239
deny from all

.htaccess.sample

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@
210210
order allow,deny
211211
deny from all
212212
</Files>
213-
<Files CONTRIBUTING.md>
214-
order allow,deny
215-
deny from all
216-
</Files>
217213
<Files COPYING.txt>
218214
order allow,deny
219215
deny from all

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ cache:
4848
- $HOME/node_modules
4949
- $HOME/yarn.lock
5050
before_install: ./dev/travis/before_install.sh
51-
install: composer install --no-interaction --prefer-dist
51+
install: composer install --no-interaction
5252
before_script: ./dev/travis/before_script.sh
5353
script:
5454
# Set arguments for variants of phpunit based tests; '|| true' prevents failing script when leading test fails

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ define([
302302
additionalParams += '&autoplay=1';
303303
}
304304

305-
src = window.location.protocol + '//player.vimeo.com/video/' +
305+
src = 'https://player.vimeo.com/video/' +
306306
this._code + '?api=1&player_id=vimeo' +
307307
this._code +
308308
timestamp +
@@ -525,7 +525,7 @@ define([
525525
);
526526
} else if (type === 'vimeo') {
527527
$.ajax({
528-
url: window.location.protocol + '//www.vimeo.com/api/v2/video/' + id + '.json',
528+
url: 'https://www.vimeo.com/api/v2/video/' + id + '.json',
529529
dataType: 'jsonp',
530530
data: {
531531
format: 'json'

app/code/Magento/ProductVideo/view/frontend/web/js/load-player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ define(['jquery', 'jquery/ui'], function ($) {
317317
if (this._loop) {
318318
additionalParams += '&loop=1';
319319
}
320-
src = window.location.protocol + '//player.vimeo.com/video/' +
320+
src = 'https://player.vimeo.com/video/' +
321321
this._code + '?api=1&player_id=vimeo' +
322322
this._code +
323323
timestamp +

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"OSL-3.0",
88
"AFL-3.0"
99
],
10+
"config": {
11+
"preferred-install": "dist"
12+
},
1013
"require": {
1114
"php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
1215
"zendframework/zend-stdlib": "^2.7.7",

dev/tests/api-functional/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1212
colors="true"
13+
columns="max"
1314
beStrictAboutTestsThatDoNotTestAnything="false"
1415
bootstrap="./framework/bootstrap.php"
1516
>

dev/tests/functional/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1010
colors="true"
11+
columns="max"
1112
bootstrap="bootstrap.php"
1213
backupGlobals="false"
1314
verbose="true"

dev/tests/integration/framework/tests/unit/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1010
colors="true"
11+
columns="max"
1112
beStrictAboutTestsThatDoNotTestAnything="false"
1213
bootstrap="./framework/bootstrap.php"
1314
>

dev/tests/integration/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1010
colors="true"
11+
columns="max"
1112
beStrictAboutTestsThatDoNotTestAnything="false"
1213
bootstrap="./framework/bootstrap.php"
1314
stderr="true"

dev/tests/integration/testsuite/Magento/Framework/Image/Adapter/InterfaceTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,7 @@ public function cropDataProvider()
547547
*/
548548
public function testCreatePngFromString($pixel1, $expectedColor1, $pixel2, $expectedColor2, $adapterType)
549549
{
550-
if (!function_exists('imagettfbbox')
551-
|| (getenv('TRAVIS') && getenv('TRAVIS_PHP_VERSION') == '7.1')
552-
) {
550+
if (!function_exists('imagettfbbox') || (getenv('TRAVIS'))) {
553551
$this->markTestSkipped('Workaround for problem with imagettfbbox() function on Travis');
554552
}
555553
$adapter = $this->_getAdapter($adapterType);

dev/tests/static/framework/tests/unit/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1010
colors="true"
11+
columns="max"
1112
beStrictAboutTestsThatDoNotTestAnything="false"
1213
bootstrap="../../bootstrap.php"
1314
>

dev/tests/static/phpunit-all.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1212
colors="true"
13+
columns="max"
1314
bootstrap="./framework/bootstrap.php"
1415
>
1516
<testsuites>

dev/tests/static/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
1212
colors="true"
13+
columns="max"
1314
beStrictAboutTestsThatDoNotTestAnything="false"
1415
bootstrap="./framework/bootstrap.php"
1516
>

dev/tests/unit/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
1010
colors="true"
11+
columns="max"
1112
beStrictAboutTestsThatDoNotTestAnything="false"
1213
bootstrap="./framework/bootstrap.php"
1314
>

0 commit comments

Comments
 (0)