-
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.
MAGETWO-60746: [GITHUB] Edit default store view will stop saying that…
… Default store cannot be disabled #7349 - Add functional test
- Loading branch information
1 parent
b4035b5
commit 12a4d00
Showing
3 changed files
with
80 additions
and
2 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
41 changes: 41 additions & 0 deletions
41
dev/tests/functional/tests/app/Magento/Store/Test/TestStep/RestoreDefaultStoreViewStep.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,41 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\Store\Test\TestStep; | ||
|
||
use Magento\Mtf\TestStep\TestStepInterface; | ||
use Magento\Store\Test\Fixture\Store; | ||
|
||
/** | ||
* Restore DefaultStore view. | ||
*/ | ||
class RestoreDefaultStoreViewStep implements TestStepInterface | ||
{ | ||
/** | ||
* Fixture of Store View. | ||
* | ||
* @var Store | ||
*/ | ||
private $storeView; | ||
|
||
/** | ||
* @param Store $storeView | ||
*/ | ||
public function __construct(Store $storeView) | ||
{ | ||
$this->storeView = $storeView; | ||
} | ||
|
||
/** | ||
* Restore Default Store View. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
$this->storeView->persist(); | ||
} | ||
} |