-
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 #45 from magento-fearless-kiwis/develop
[Fearless-Kiwis] Sprint 38 bug fixes
- Loading branch information
Showing
58 changed files
with
2,851 additions
and
253 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
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
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
62 changes: 62 additions & 0 deletions
62
dev/tests/functional/tests/app/Magento/CatalogRule/Test/TestStep/CreateCatalogRuleStep.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,62 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\CatalogRule\Test\TestStep; | ||
|
||
use Mtf\Fixture\FixtureFactory; | ||
use Mtf\TestStep\TestStepInterface; | ||
|
||
/** | ||
* Creating catalog rule | ||
*/ | ||
class CreateCatalogRuleStep implements TestStepInterface | ||
{ | ||
/** | ||
* Catalog Rule dataset name | ||
* | ||
* @var string | ||
*/ | ||
protected $catalogRule; | ||
|
||
/** | ||
* Factory for Fixture | ||
* | ||
* @var FixtureFactory | ||
*/ | ||
protected $fixtureFactory; | ||
|
||
/** | ||
* Preparing step properties | ||
* | ||
* @constructor | ||
* @param FixtureFactory $fixtureFactory | ||
* @param string $catalogRule | ||
*/ | ||
public function __construct(FixtureFactory $fixtureFactory, $catalogRule) | ||
{ | ||
$this->fixtureFactory = $fixtureFactory; | ||
$this->catalogRule = $catalogRule; | ||
} | ||
|
||
/** | ||
* Create catalog rule | ||
* | ||
* @return array | ||
*/ | ||
public function run() | ||
{ | ||
$result['catalogRule'] = null; | ||
if ($this->catalogRule != '-') { | ||
$catalogRule = $this->fixtureFactory->createByCode( | ||
'catalogRule', | ||
['dataSet' => $this->catalogRule] | ||
); | ||
$catalogRule->persist(); | ||
$result['catalogRule'] = $catalogRule; | ||
} | ||
return $result; | ||
} | ||
} |
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.