Skip to content

Commit

Permalink
Update phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
brantje committed Jul 1, 2017
1 parent 2c0455e commit a1d1fc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion js/exporters/exporter-csv.js
Expand Up @@ -33,7 +33,7 @@ PassmanExporter.csv = {
PassmanExporter.csv.export = function (credentials, FileService, EncryptService) {
/** global: C_Promise */
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 file_data = '"' + headers.join('","') + '"\n';
for (var i = 0; i < credentials.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.integration.xml
@@ -1,7 +1,7 @@
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="integration">
<directory>./tests/integration</directory>
<!-- <directory>./tests/integration</directory> -->
</testsuite>
</testsuites>
</phpunit>
6 changes: 3 additions & 3 deletions phpunit.xml
Expand Up @@ -2,7 +2,7 @@
<testsuites>
<testsuite name="unit">
<directory>./tests/unit</directory>
<!--<exclude>./tests/unit/lib/Db</exclude>-->
<exclude>./tests/unit/lib/Db</exclude>
</testsuite>
</testsuites>
<filter>
Expand All @@ -13,8 +13,8 @@

<!--<file>/path/to/file</file>-->
<!--<exclude>-->
<!--<directory suffix=".php">/path/to/dir</directory>-->
<!--<file>/path/to/file</file>-->
<!--<directory suffix=".php">/path/to/dir</directory>-->
<!--<file>/path/to/file</file>-->
<!--</exclude>-->
</whitelist>

Expand Down
8 changes: 1 addition & 7 deletions tests/bootstrap.php
Expand Up @@ -9,14 +9,8 @@
* @copyright Sander Brand 2016
*/

$nc_require_base = getenv('SERVER_BASE_DIR');

if ($nc_require_base) {
require_once $nc_require_base . '/tests/bootstrap.php';
}
else{
require_once __DIR__ . '/../../../tests/bootstrap.php';
}
require_once __DIR__ . '/../../../tests/bootstrap.php';

require_once __DIR__ . '/../appinfo/autoload.php';
require_once __DIR__ . '/db/DatabaseHelperTest.php';
Expand Down

0 comments on commit a1d1fc8

Please sign in to comment.