Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DeleteIntegrationEntityTest.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\Mtf\TestCase\Injectable;
12 
27 class DeleteIntegrationEntityTest extends Injectable
28 {
29  /* tags */
30  const MVP = 'yes';
31  /* end tags */
32 
39 
46  public function __inject(IntegrationIndex $integrationIndex)
47  {
48  $this->integrationIndexPage = $integrationIndex;
49  }
50 
57  public function test(Integration $integration)
58  {
59  // Precondition
60  $integration->persist();
61 
62  // Steps
63  $filter = ['name' => $integration->getName()];
64  $this->integrationIndexPage->open();
65  $this->integrationIndexPage->getIntegrationGrid()->searchAndDelete($filter);
66  }
67 }