mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +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:
@@ -25,7 +25,6 @@
|
||||
namespace SP\Tests\Repositories;
|
||||
|
||||
use DI\DependencyException;
|
||||
use PHPUnit\DbUnit\DataSet\IDataSet;
|
||||
use SP\Core\Exceptions\ConstraintException;
|
||||
use SP\DataModel\ItemData;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
@@ -56,6 +55,8 @@ class PluginRepositoryTest extends DatabaseTestCase
|
||||
{
|
||||
$dic = setupContext();
|
||||
|
||||
self::$dataset = 'syspass_plugin.xml';
|
||||
|
||||
// Datos de conexión a la BBDD
|
||||
self::$databaseConnectionData = $dic->get(DatabaseConnectionData::class);
|
||||
|
||||
@@ -361,14 +362,4 @@ class PluginRepositoryTest extends DatabaseTestCase
|
||||
|
||||
$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_plugin.xml');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user