-
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 #1104 from magento-engcom/2.1-develop-prs
- Loading branch information
Showing
14 changed files
with
163 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Copyright © 2013-2017 Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Email\Model\Design\Backend; | ||
|
||
use Magento\Theme\Model\Design\Backend\Logo as DesignLogo; | ||
|
||
class Logo extends DesignLogo | ||
{ | ||
/** | ||
* The tail part of directory path for uploading | ||
*/ | ||
const UPLOAD_DIR = 'email/logo'; | ||
|
||
/** | ||
* Upload max file size in kilobytes | ||
* | ||
* @var int | ||
*/ | ||
protected $maxFileSize = 2048; | ||
|
||
/** | ||
* Getter for allowed extensions of uploaded files | ||
* | ||
* @return string[] | ||
*/ | ||
public function getAllowedExtensions() | ||
{ | ||
return ['jpg', 'jpeg', 'gif', 'png']; | ||
} | ||
} |
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
47 changes: 47 additions & 0 deletions
47
...sts/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductPriceIsNotZero.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,47 @@ | ||
<?php | ||
/** | ||
* Copyright © 2013-2017 Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\Wishlist\Test\Constraint; | ||
|
||
class AssertProductPriceIsNotZero extends \Magento\Mtf\Constraint\AbstractConstraint | ||
{ | ||
/** | ||
* Assert that product price is not zero in default wishlist. | ||
* | ||
* @param \Magento\Cms\Test\Page\CmsIndex $cmsIndex | ||
* @param \Magento\Customer\Test\Page\CustomerAccountIndex $customerAccountIndex | ||
* @param \Magento\Wishlist\Test\Page\WishlistIndex $wishlistIndex | ||
* @param \Magento\Mtf\Fixture\InjectableFixture $product | ||
* | ||
* @return void | ||
*/ | ||
public function processAssert( | ||
\Magento\Cms\Test\Page\CmsIndex $cmsIndex, | ||
\Magento\Customer\Test\Page\CustomerAccountIndex $customerAccountIndex, | ||
\Magento\Wishlist\Test\Page\WishlistIndex $wishlistIndex, | ||
\Magento\Mtf\Fixture\InjectableFixture $product | ||
) { | ||
$cmsIndex->getLinksBlock()->openLink('My Account'); | ||
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('My Wish List'); | ||
$wishlistItem = $wishlistIndex->getWishlistBlock()->getProductItemsBlock()->getItemProduct($product); | ||
|
||
\PHPUnit_Framework_Assert::assertNotEquals( | ||
'0.00', | ||
$wishlistItem->getPrice(), | ||
$product->getName() . ' has zero price on Wish List page.' | ||
); | ||
} | ||
|
||
/** | ||
* Returns a string representation of the object. | ||
* | ||
* @return string | ||
*/ | ||
public function toString() | ||
{ | ||
return 'Product price is not zero in default Wish List.'; | ||
} | ||
} |
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