mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 03:16:54 +01:00
* [ADD] Unit testing. Work in progress
* [ADD] Added trasient data collection to context * [MOD] Code refactoring and minor bugfixes
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
|
||||
namespace SP\Tests\Repositories;
|
||||
|
||||
use PHPUnit\DbUnit\DataSet\IDataSet;
|
||||
use SP\DataModel\FileData;
|
||||
use SP\DataModel\FileExtData;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
@@ -54,6 +53,8 @@ class AccountFileRepositoryTest extends DatabaseTestCase
|
||||
{
|
||||
$dic = setupContext();
|
||||
|
||||
self::$dataset = 'syspass_accountFile.xml';
|
||||
|
||||
// Datos de conexión a la BBDD
|
||||
self::$databaseConnectionData = $dic->get(DatabaseConnectionData::class);
|
||||
|
||||
@@ -302,14 +303,4 @@ class AccountFileRepositoryTest extends DatabaseTestCase
|
||||
$result = self::$repository->getByIdBatch([]);
|
||||
$this->assertEquals(0, $result->getNumRows());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the test dataset.
|
||||
*
|
||||
* @return IDataSet
|
||||
*/
|
||||
protected function getDataSet()
|
||||
{
|
||||
return $this->createMySQLXMLDataSet(RESOURCE_DIR . DIRECTORY_SEPARATOR . 'datasets' . DIRECTORY_SEPARATOR . 'syspass_accountFile.xml');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user