-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #238 from magento-extensibility/develop
[Extensibility] Sprint 60 pull request
- Loading branch information
Showing
14 changed files
with
283 additions
and
28 deletions.
There are no files selected for viewing
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
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
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
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
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
48 changes: 48 additions & 0 deletions
48
dev/tests/integration/testsuite/Magento/Backend/Block/Page/FooterTest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Backend\Block\Page; | ||
|
||
/** | ||
* Test \Magento\Backend\Block\Page\Footer | ||
* @magentoAppArea adminhtml | ||
*/ | ||
class FooterTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* Test Product Version Value | ||
*/ | ||
const TEST_PRODUCT_VERSION = '222.333.444'; | ||
|
||
/** | ||
* @var \Magento\Backend\Block\Page\Footer | ||
*/ | ||
protected $block; | ||
|
||
protected function setUp() | ||
{ | ||
parent::setUp(); | ||
$productMetadataMock = $this->getMockBuilder('Magento\Framework\App\ProductMetadata') | ||
->setMethods(['getVersion']) | ||
->disableOriginalConstructor() | ||
->getMock(); | ||
$productMetadataMock->expects($this->once()) | ||
->method('getVersion') | ||
->willReturn($this::TEST_PRODUCT_VERSION); | ||
$this->block = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get( | ||
'Magento\Framework\View\LayoutInterface' | ||
)->createBlock( | ||
'Magento\Backend\Block\Page\Footer', | ||
'', | ||
['productMetadata' => $productMetadataMock] | ||
); | ||
} | ||
|
||
public function testToHtml() | ||
{ | ||
$footerContent = $this->block->toHtml(); | ||
$this->assertContains('ver. ' . $this::TEST_PRODUCT_VERSION, $footerContent, 'No or wrong product version.'); | ||
} | ||
} |
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
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
78 changes: 78 additions & 0 deletions
78
lib/internal/Magento/Framework/App/Test/Unit/_files/test.composer.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"name": "magento/magento2ce", | ||
"description": "Magento 2 (Test Edition)", | ||
"type": "project", | ||
"version": "222.333.444", | ||
"license": [ | ||
"OSL-3.0", | ||
"AFL-3.0" | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://repo.magento.com/" | ||
} | ||
], | ||
"require": { | ||
"php": "~5.5.0|~5.6.0|~7.0.0", | ||
"ext-openssl": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.1.0", | ||
"squizlabs/php_codesniffer": "1.5.3", | ||
"phpmd/phpmd": "@stable", | ||
"pdepend/pdepend": "2.0.6", | ||
"sjparkinson/static-review": "~4.1", | ||
"fabpot/php-cs-fixer": "~1.2", | ||
"lusitanian/oauth": "~0.3 <=0.7.0" | ||
}, | ||
"replace": { | ||
"magento/module-marketplace": "100.0.2", | ||
"tinymce/tinymce": "3.4.7" | ||
}, | ||
"extra": { | ||
"component_paths": { | ||
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js", | ||
"components/jquery": [ | ||
"lib/web/jquery.js", | ||
"lib/web/jquery/jquery.min.js", | ||
"lib/web/jquery/jquery-migrate.js" | ||
], | ||
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader", | ||
"components/jqueryui": [ | ||
"lib/web/jquery/jquery-ui.js" | ||
], | ||
"twbs/bootstrap": [ | ||
"lib/web/jquery/jquery.tabs.js" | ||
], | ||
"tinymce/tinymce": "lib/web/tiny_mce" | ||
} | ||
}, | ||
"config": { | ||
"use-include-path": true | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Magento\\Framework\\": "lib/internal/Magento/Framework/", | ||
"Magento\\Setup\\": "setup/src/Magento/Setup/", | ||
"Magento\\": "app/code/Magento/" | ||
}, | ||
"psr-0": { | ||
"": "app/code/" | ||
}, | ||
"files": [ | ||
"app/etc/NonComposerComponentRegistration.php" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/", | ||
"Magento\\Tools\\": "dev/tools/Magento/Tools/", | ||
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/", | ||
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/", | ||
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/" | ||
} | ||
}, | ||
"minimum-stability": "alpha", | ||
"prefer-stable": true | ||
} |
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
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
Oops, something went wrong.