Skip to content

Commit 5768f49

Browse files
committed
1012: updated testing files
1 parent ce0de70 commit 5768f49

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

testData/actions/generation/generator/FormButtonBlockGenerator/generateBackButtonBlock/MyBackButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getButtonData(): array
2121
'back',
2222
sprintf("location.href = '%s';", $this->getUrl('*/*/')),
2323
[],
24-
30
24+
10
2525
);
2626
}
2727
}

testData/actions/generation/generator/FormButtonBlockGenerator/generateDeleteButtonBlock/DeleteBlock.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ public function getButtonData(): array
2020
return $this->wrapButtonSettings(
2121
'Delete',
2222
'delete',
23-
'deleteConfirm(\''
24-
. __('Are you sure you want to delete this book?')
25-
. '\', \'' . $this->getUrl(
26-
'*/*/delete',
27-
[BookData::BOOK_ID => $this->getBookId()]
28-
) . '\')',
23+
sprintf("deleteConfirm('%s', '%s')",
24+
__('Are you sure you want to delete this book?'),
25+
$this->getUrl(
26+
'*/*/delete',
27+
[BookData::BOOK_ID => $this->getBookId()]
28+
)
29+
),
2930
[],
3031
20
3132
);

testData/actions/generation/generator/FormButtonBlockGenerator/generateSaveButtonBlock/SaveBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function getButtonData(): array
2424
'mage-init' => ['button' => ['event' => 'save']],
2525
'form-role' => 'save'
2626
],
27-
10
27+
30
2828
);
2929
}
3030
}

0 commit comments

Comments
 (0)