aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-12-30 21:05:19 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 21:58:01 +0200
commit51ffab004547ba0c791ebba652d844c9443cc0ad (patch)
tree917d6a4c94a0b4ba58a1f31604a916a1f7e3688c /tests
parent4ad0d4ceeb9e3cf1a619d113f8392e1a21c70163 (diff)
downloadforums-51ffab004547ba0c791ebba652d844c9443cc0ad.tar
forums-51ffab004547ba0c791ebba652d844c9443cc0ad.tar.gz
forums-51ffab004547ba0c791ebba652d844c9443cc0ad.tar.bz2
forums-51ffab004547ba0c791ebba652d844c9443cc0ad.tar.xz
forums-51ffab004547ba0c791ebba652d844c9443cc0ad.zip
[ticket/14948] Use new namespaced classes when generating mssql schema
PHPBB3-14948
Diffstat (limited to 'tests')
-rw-r--r--tests/test_framework/phpbb_database_test_case.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php
index 3ad1473990..e2b8214636 100644
--- a/tests/test_framework/phpbb_database_test_case.php
+++ b/tests/test_framework/phpbb_database_test_case.php
@@ -148,7 +148,7 @@ abstract class phpbb_database_test_case extends TestCase
* Create xml data set for insertion into database
*
* @param string $path Path to fixture XML
- * @return PHPUnit_Extensions_Database_DataSet_DefaultDataSet|PHPUnit_Extensions_Database_DataSet_XmlDataSet
+ * @return PHPUnit\DbUnit\DataSet\DefaultDataSet|PHPUnit\DbUnit\DataSet\XmlDataSet
*/
public function createXMLDataSet($path)
{
@@ -157,11 +157,11 @@ abstract class phpbb_database_test_case extends TestCase
// Extend XML data set on MSSQL
if (strpos($this->get_database_config()['dbms'], 'mssql') !== false)
{
- $newXmlData = new PHPUnit_Extensions_Database_DataSet_DefaultDataSet();
+ $newXmlData = new PHPUnit\DbUnit\DataSet\DefaultDataSet([]);
$db = $this->new_dbal();
foreach ($this->fixture_xml_data as $key => $value)
{
- /** @var \PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData $tableMetaData */
+ /** @var PHPUnit\DbUnit\DataSet\DefaultTableMetaData $tableMetaData */
$tableMetaData = $value->getTableMetaData();
$columns = $tableMetaData->getColumns();
$primaryKeys = $tableMetaData->getPrimaryKeys();
@@ -203,8 +203,8 @@ abstract class phpbb_database_test_case extends TestCase
$columns[] = 'mssqlindex';
}
- $newMetaData = new PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData($key, $columns, $primaryKeys);
- $newTable = new PHPUnit_Extensions_Database_DataSet_DefaultTable($newMetaData);
+ $newMetaData = new PHPUnit\DbUnit\DataSet\DefaultTableMetaData($key, $columns, $primaryKeys);
+ $newTable = new PHPUnit\DbUnit\DataSet\DefaultTable($newMetaData);
for ($i = 0; $i < $value->getRowCount(); $i++)
{
$dataRow = $value->getRow($i);