Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateIntegrationEntityTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Integration\Test\Fixture\Integration;
10 use Magento\Integration\Test\Page\Adminhtml\IntegrationIndex;
11 use Magento\Integration\Test\Page\Adminhtml\IntegrationNew;
12 use Magento\Mtf\TestCase\Injectable;
13 
26 class CreateIntegrationEntityTest extends Injectable
27 {
28  /* tags */
29  const MVP = 'yes';
30  /* end tags */
31 
38 
45 
53  public function __inject(IntegrationIndex $integrationIndex, IntegrationNew $integrationNew)
54  {
55  $this->integrationIndexPage = $integrationIndex;
56  $this->integrationNewPage = $integrationNew;
57  }
58 
65  public function test(Integration $integration)
66  {
67  // Steps
68  $this->integrationIndexPage->open();
69  $this->integrationIndexPage->getGridPageActions()->addNew();
70  $this->integrationNewPage->getIntegrationForm()->fill($integration);
71  $this->integrationNewPage->getFormPageActions()->saveNew();
72  }
73 }
__inject(IntegrationIndex $integrationIndex, IntegrationNew $integrationNew)