Skip to content

Commit

Permalink
fix to code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alepane21 authored and rostyslav-hymon committed Mar 27, 2018
1 parent 2d12dac commit 8a097fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ protected function setUp()
);
}

protected function setDown() {
protected function setDown()
{
/* Refresh stores memory cache after store deletion */
\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
\Magento\Store\Model\StoreManagerInterface::class
Expand Down Expand Up @@ -51,7 +52,8 @@ public function testJoinUrlRewriteOnDefault()
*/
public function testJoinUrlRewriteNotOnDefaultStore()
{
$store = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Store\Model\Store::class);
$store = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
->create(\Magento\Store\Model\Store::class);
$storeId = $store->load('second_category_store', 'code')->getId();
$categories = $this->collection->setStoreId($storeId)->joinUrlRewrite()->addPathFilter('1/2/3');
$this->assertCount(1, $categories);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
$newCategory
->setUrlKey('category-3-on-2');
$repository->save($newCategory);
$storeManager->setCurrentStore($storeManager->getStore($currentStoreId));
$storeManager->setCurrentStore($storeManager->getStore($currentStoreId));

0 comments on commit 8a097fc

Please sign in to comment.