Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateCategoryTest.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
15  public function testGetButtonData()
16  {
17  $this->assertEquals(
18  [
19  'label' => __('Create Category'),
20  'class' => 'save primary',
21  'data_attribute' => [
22  'mage-init' => ['button' => ['event' => 'save']],
23  'form-role' => 'save',
24  ],
25  'sort_order' => 10,
26  ],
27  $this->getModel(CreateCategory::class)->getButtonData()
28  );
29  }
30 }
__()
Definition: __.php:13