Skip to content

Commit 6de5bff

Browse files
mihai.comanmihai.coman
authored andcommitted
ICP-11 removed identifiers
1 parent d5106c6 commit 6de5bff

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

Test/Integration/ExportByStoreScopeEntitiesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ protected function setUp(): void
4444
public function getExecuteCases(): array
4545
{
4646
return [
47-
['block', 'import_gopher_cms_block_multistore', ['default', 'second_store_view']],
48-
['page', 'import_gopher_cms_page_multistore', ['default', 'second_store_view']],
47+
['block', 'imported_cms_block_multistore', ['default', 'second_store_view']],
48+
['page', 'imported_cms_page_multistore', ['default', 'second_store_view']],
4949
];
5050
}
5151

Test/Integration/ImportByStoreScopeEntitiesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ protected function setUp(): void
5757
public function getExecuteCases(): array
5858
{
5959
return [
60-
['block', 'import_gopher_cms_block_multistore', ['second_store_view']],
61-
['page', 'import_gopher_cms_page_multistore', ['second_store_view']],
60+
['block', 'imported_cms_block_multistore', ['second_store_view']],
61+
['page', 'imported_cms_page_multistore', ['second_store_view']],
6262
];
6363
}
6464

@@ -124,13 +124,13 @@ private function checkAndCreateFiles(string $type, string $identifier, array $sc
124124
$this->varDirectory->create($this->exportDirPath);
125125
}
126126

127-
$blockContent = '{"title":"CMS Block Title","identifier":"import_gopher_cms_block_multistore","stores":["second_store_view"],"is_active":true,"is_tailwindcss_jit_enabled":"1"}';
127+
$blockContent = '{"title":"CMS Block Title","identifier":"imported_cms_block_multistore","stores":["second_store_view"],"is_active":true,"is_tailwindcss_jit_enabled":"1"}';
128128
$blockHtmlContent = '<h1>Fixture Block Title</h1>
129129
<a href="{{store url=""}}">store url</a>
130130
<p>Config value: "{{config path="web/unsecure/base_url"}}".</p>
131131
<p>Custom variable: "{{customvar code="variable_code"}}".</p>
132132
';
133-
$pageContent = '{"title":"Cms Page 100","is_active":true,"page_layout":"1column","identifier":"import_gopher_cms_page_multistore","stores":["second_store_view"],"content_heading":"<h2>Cms Page 100 Title<\/h2>","is_tailwindcss_jit_enabled":"1"}';
133+
$pageContent = '{"title":"Cms Page 100","is_active":true,"page_layout":"1column","identifier":"imported_cms_page_multistore","stores":["second_store_view"],"content_heading":"<h2>Cms Page 100 Title<\/h2>","is_tailwindcss_jit_enabled":"1"}';
134134
$pageHtmlContent = '<h1>Cms Page 100 Title</h1>';
135135
$jsonFilename = sprintf(
136136
"$identifier---%s.json",

Test/Integration/ImportEntitiesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ protected function setUp(): void
5353
public function getExecuteCases(): array
5454
{
5555
return [
56-
['block', 'import_gopher_cms_block'],
57-
['page', 'import_gopher_cms_page'],
56+
['block', 'imported_cms_block'],
57+
['page', 'imported_cms_page'],
5858
];
5959
}
6060

@@ -127,7 +127,7 @@ public function testCmsImportedCorrectly(string $type, string $identifier)
127127
*/
128128
private function deleteTestBlock(): void
129129
{
130-
$block = $this->getBlock->execute('import_gopher_cms_block', 1);
130+
$block = $this->getBlock->execute('imported_cms_block', 1);
131131
$this->blockRepository->delete($block);
132132
}
133133

@@ -138,7 +138,7 @@ private function deleteTestBlock(): void
138138
*/
139139
private function deleteTestPage(): void
140140
{
141-
$page = $this->getPage->execute('import_gopher_cms_page', 1);
141+
$page = $this->getPage->execute('imported_cms_page', 1);
142142
$this->pageRepository->delete($page);
143143
}
144144
}

_files/custom_block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$block->setTitle(
2020
'CMS Block Title'
2121
)->setIdentifier(
22-
'import_gopher_cms_block'
22+
'imported_cms_block'
2323
)->setContent(
2424
'<h1>Fixture Block Title</h1>
2525
<a href="{{store url=""}}">store url</a>

_files/custom_page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$pageRepository = $objectManager->create(PageRepositoryInterface::class);
1717

1818
$page->setTitle('Cms Page 100')
19-
->setIdentifier('import_gopher_cms_page')
19+
->setIdentifier('imported_cms_page')
2020
->setStores([1])
2121
->setIsActive(1)
2222
->setContent('<h1>Cms Page 100 Title</h1>')

_files/multi_store_block.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$store = $objectManager->create(Store::class);
2020
$store->load('second_store_view', 'code');
2121
$block = $blockFactory->create();
22-
$block->load('import_gopher_cms_block_multistore', 'identifier');
22+
$block->load('imported_cms_block_multistore', 'identifier');
2323
if ($block->getId()) {
2424
$blockRepository->delete($block);
2525
$block = $blockFactory->create();
@@ -28,7 +28,7 @@
2828
$block->setTitle(
2929
'CMS Block Title'
3030
)->setIdentifier(
31-
'import_gopher_cms_block_multistore'
31+
'imported_cms_block_multistore'
3232
)->setContent(
3333
'<h1>Fixture Block Title</h1>
3434
<a href="{{store url=""}}">store url</a>

_files/multi_store_page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
$store = $objectManager->create(Store::class);
2020
$store->load('second_store_view', 'code');
2121
$page = $pageFactory->create();
22-
$page->load('import_gopher_cms_page_multistore', 'identifier');
22+
$page->load('imported_cms_page_multistore', 'identifier');
2323
if ($page->getId()) {
2424
$pageRepository->delete($page);
2525
$page = $pageFactory->create();
2626
}
2727

2828
$page->setTitle('Cms Page 100')
29-
->setIdentifier('import_gopher_cms_page_multistore')
29+
->setIdentifier('imported_cms_page_multistore')
3030
->setStores([1, (int)$store->getId()])
3131
->setIsActive(1)
3232
->setContent('<h1>Cms Page 100 Title</h1>')

0 commit comments

Comments
 (0)