Skip to content

Commit

Permalink
Improve code, DEV-362
Browse files Browse the repository at this point in the history
  • Loading branch information
RanaMuhammadIrshad committed Feb 7, 2024
1 parent 50e8d1a commit 96225be
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Test/Integration/CheckDefaultStoreCodeHiddenInUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,24 @@ public function testStoreCodeIsShownInNonDefaultStoreUrl(): void
public function testStoreCodeIsNotShownInNonDefaultStoreUrl(): void
{
$store = $this->storeRepository->get('test');
$this->config->setValue(Store::XML_PATH_STORE_IN_URL, false, ScopeInterface::SCOPE_STORE, $store->getCode());
$this->config->setValue(
Store::XML_PATH_STORE_IN_URL,
false,
ScopeInterface::SCOPE_STORE,
$store->getCode()
);
$this->assertStringNotContainsString('test', $store->getBaseUrl());
}

public function testStoreCodeIsNotShownInDefaultStoreUrl(): void
{
$store = $this->storeRepository->get('default');
$this->config->setValue(Store::XML_PATH_STORE_IN_URL, false, ScopeInterface::SCOPE_STORE, $store->getCode());
$this->config->setValue(
Store::XML_PATH_STORE_IN_URL,
false,
ScopeInterface::SCOPE_STORE,
$store->getCode()
);
$this->assertStringNotContainsString('default', $store->getBaseUrl());
}

Expand Down

0 comments on commit 96225be

Please sign in to comment.