/** * @param array|string $modelEntity * @param string $tableName * @param string $mappedName * @param string $expected * * @dataProvider getTableNameMappedDataProvider */ public function testGetTableNameMapped($modelEntity, $tableName, $mappedName, $expected) { $this->connectionFactory->expects($this->once())->method('create')->will($this->returnValue($this->connection)); $this->resource->setMappedTableName($tableName, $mappedName); $this->assertSame($expected, $this->resource->getTableName($modelEntity)); }