27 private $moduleManager;
37 private $resourceConnection;
42 $this->moduleManager =
$objectManager->get(TestModuleManager::class);
44 $this->resourceConnection =
$objectManager->get(ResourceConnection::class);
53 $testTableData = $this->
getData();
54 $row = reset($testTableData);
55 $this->cliCommad->install([
'Magento_TestSetupDeclarationModule4']);
56 $adapter = $this->resourceConnection->getConnection();
57 $testTableName = $this->resourceConnection->getTableName(
'test_table');
59 $this->resourceConnection->getTableName(
'test_table'),
64 $this->moduleManager->updateRevision(
65 'Magento_TestSetupDeclarationModule4',
66 'remove_title_column',
70 $this->cliCommad->upgrade(
76 $this->moduleManager->updateRevision(
77 'Magento_TestSetupDeclarationModule4',
78 'restore_title_column',
82 $this->cliCommad->upgrade(
84 'data-restore' =>
true,
87 $testTableSelect =
$adapter->select()->from($testTableName);
88 self::assertEquals($testTableData,
$adapter->fetchAll($testTableSelect));
static getObjectManager()