check if tests can be run

This commit is contained in:
Roland Gruber 2016-12-26 18:16:49 +01:00
parent 39fdc3e5d2
commit 4417e5aff7
4 changed files with 320 additions and 311 deletions

View File

@ -21,18 +21,20 @@
*/
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules.inc';
include_once 'lam/lib/passwordExpirationJob.inc';
include_once 'lam/lib/modules/ppolicyUser.inc';
if (is_readable('lam/lib/modules/ppolicyUser.inc')) {
/**
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules.inc';
include_once 'lam/lib/passwordExpirationJob.inc';
include_once 'lam/lib/modules/ppolicyUser.inc';
/**
* Checks the ppolicy expire job.
*
* @author Roland Gruber
*
*/
class PPolicyUserPasswordNotifyJobTest extends PHPUnit_Framework_TestCase {
class PPolicyUserPasswordNotifyJobTest extends PHPUnit_Framework_TestCase {
private $job;
@ -214,7 +216,8 @@ class PPolicyUserPasswordNotifyJobTest extends PHPUnit_Framework_TestCase {
}
}
}
?>

View File

@ -23,7 +23,6 @@
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules.inc';
include_once 'lam/lib/passwordExpirationJob.inc';
include_once 'lam/lib/modules/sambaSamAccount.inc';
/**

View File

@ -21,18 +21,20 @@
*/
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules.inc';
include_once 'lam/lib/passwordExpirationJob.inc';
include_once 'lam/lib/modules/shadowAccount.inc';
if (is_readable('lam/lib/passwordExpirationJob.inc')) {
/**
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules.inc';
include_once 'lam/lib/passwordExpirationJob.inc';
include_once 'lam/lib/modules/shadowAccount.inc';
/**
* Checks the shadow expire job.
*
* @author Roland Gruber
*
*/
class ShadowAccountPasswordNotifyJobTest extends PHPUnit_Framework_TestCase {
class ShadowAccountPasswordNotifyJobTest extends PHPUnit_Framework_TestCase {
private $job;
@ -159,7 +161,8 @@ class ShadowAccountPasswordNotifyJobTest extends PHPUnit_Framework_TestCase {
$this->job->execute(ShadowAccountPasswordNotifyJobTest::JOB_ID, $this->options, $pdo, true);
}
}
}
?>

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2014 Roland Gruber
Copyright (C) 2014 - 2016 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
@ -21,16 +21,18 @@ $Id$
*/
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules/sudoRole.inc';
if (is_readable('lam/lib/modules/sudoRole.inc')) {
/**
include_once 'lam/lib/baseModule.inc';
include_once 'lam/lib/modules/sudoRole.inc';
/**
* Checks sudo role functions.
*
* @author Roland Gruber
*
*/
class SudoRoleTest extends PHPUnit_Framework_TestCase {
class SudoRoleTest extends PHPUnit_Framework_TestCase {
public function testIsValidDate() {
$valid = array('22.10.2014', '05.01.2013', '1.3.2014', '10.5.2014', '4.12.2015',
@ -76,6 +78,8 @@ class SudoRoleTest extends PHPUnit_Framework_TestCase {
}
}
}
}
?>