mirror of
https://github.com/nextcloud/passman.git
synced 2025-12-18 22:21:00 +08:00
Update phpunit
This commit is contained in:
parent
2c0455ead1
commit
a1d1fc8ede
4 changed files with 6 additions and 12 deletions
|
|
@ -33,7 +33,7 @@ PassmanExporter.csv = {
|
||||||
PassmanExporter.csv.export = function (credentials, FileService, EncryptService) {
|
PassmanExporter.csv.export = function (credentials, FileService, EncryptService) {
|
||||||
/** global: C_Promise */
|
/** global: C_Promise */
|
||||||
return new C_Promise(function () {
|
return new C_Promise(function () {
|
||||||
PassmanExporter.getCredentialsWithFiles(credentials, FileService, EncryptService).then((function(data){
|
PassmanExporter.getCredentialsWithFiles(credentials, FileService, EncryptService).then((function(){
|
||||||
var headers = ['label', 'username', 'password', 'email', 'description', 'tags', 'url', 'custom_fields', 'files'];
|
var headers = ['label', 'username', 'password', 'email', 'description', 'tags', 'url', 'custom_fields', 'files'];
|
||||||
var file_data = '"' + headers.join('","') + '"\n';
|
var file_data = '"' + headers.join('","') + '"\n';
|
||||||
for (var i = 0; i < credentials.length; i++) {
|
for (var i = 0; i < credentials.length; i++) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="integration">
|
<testsuite name="integration">
|
||||||
<directory>./tests/integration</directory>
|
<!-- <directory>./tests/integration</directory> -->
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="unit">
|
<testsuite name="unit">
|
||||||
<directory>./tests/unit</directory>
|
<directory>./tests/unit</directory>
|
||||||
<!--<exclude>./tests/unit/lib/Db</exclude>-->
|
<exclude>./tests/unit/lib/Db</exclude>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
<filter>
|
<filter>
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,8 @@
|
||||||
* @copyright Sander Brand 2016
|
* @copyright Sander Brand 2016
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$nc_require_base = getenv('SERVER_BASE_DIR');
|
|
||||||
|
|
||||||
if ($nc_require_base) {
|
require_once __DIR__ . '/../../../tests/bootstrap.php';
|
||||||
require_once $nc_require_base . '/tests/bootstrap.php';
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
require_once __DIR__ . '/../../../tests/bootstrap.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once __DIR__ . '/../appinfo/autoload.php';
|
require_once __DIR__ . '/../appinfo/autoload.php';
|
||||||
require_once __DIR__ . '/db/DatabaseHelperTest.php';
|
require_once __DIR__ . '/db/DatabaseHelperTest.php';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue