Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Jan 21, 2024
1 parent c885d89 commit 3e0128f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lam/tests/utils/2factorUtils.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use LAM\LIB\TWO_FACTOR\TwoFactorProviderService;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2023 Roland Gruber
Copyright (C) 2023 - 2024 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -23,7 +23,7 @@ use LAM\LIB\TWO_FACTOR\TwoFactorProviderService;
*/

include_once (dirname(__FILE__) . '/../../lib/2factor.inc');
include_once __DIR__ . '/../../lib/2factor.inc';

class TwoFactorProviderServiceSpy extends TwoFactorProviderService {

Expand Down
8 changes: 4 additions & 4 deletions lam/tests/utils/configuration.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2014 - 2021 Roland Gruber
Copyright (C) 2014 - 2024 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -20,8 +20,8 @@
*/

include_once (dirname(__FILE__) . '/../../lib/config.inc');
include_once (dirname(__FILE__) . '/../lib/LAMConfigTest.php');
include_once __DIR__ . '/../../lib/config.inc';
include_once __DIR__ . '/../lib/LAMConfigTest.php';

/**
* Creates a default configuration and adds it to $_SESSION['cfgMain'] and $_SESSION['config'].
Expand All @@ -31,7 +31,7 @@ function testCreateDefaultConfig() {
$cfgMain = new LAMCfgMain();
$cfgMain->logDestination = 'NONE';
$_SESSION['cfgMain'] = $cfgMain;
$cfgPath = dirname(__FILE__) . '/../../config/' . LAMConfigTest::FILE_NAME . '.conf';
$cfgPath = __DIR__ . '/../../config/' . LAMConfigTest::FILE_NAME . '.conf';
if (file_exists($cfgPath)) {
unlink($cfgPath);
}
Expand Down

0 comments on commit 3e0128f

Please sign in to comment.