| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | private $databaseName; |
||
| 17 | private $tableNames; |
||
| 18 | |||
| 19 | public function setUp() { |
||
| 20 | $environment = TestEnvironment::newDefault(); |
||
| 21 | $this->databaseName = $environment->getDatabaseName(); |
||
| 22 | $this->tableNames = $environment->getFactory()->getConnection()->getSchemaManager()->createSchema()->getTableNames(); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @dataProvider expectedTableNameProvider |
||
| 27 | */ |
||
| 28 | public function testTablesAreCreated( string $tableName ) { |
||
| 29 | $this->assertContains( |
||
| 30 | $this->databaseName . '.' . $tableName, |
||
| 31 | $this->tableNames |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function expectedTableNameProvider() { |
||
| 36 | yield [ 'action_log' ]; |
||
| 37 | yield [ 'address' ]; |
||
| 48 |