mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Add library from incubator and teststubs
This commit only contains the untested libaries from the incubator and autogenerated teststubs and is the basis for writing the tests refs #4250
This commit is contained in:
parent
b8db744d42
commit
d1f6668fe7
0
library/Icinga/Authentication/Backend/Db.php
Normal file
0
library/Icinga/Authentication/Backend/Db.php
Normal file
0
library/Icinga/Authentication/Group.php
Normal file
0
library/Icinga/Authentication/Group.php
Normal file
0
library/Icinga/Authentication/GroupBackend.php
Normal file
0
library/Icinga/Authentication/GroupBackend.php
Normal file
0
library/Icinga/Authentication/GroupMembership.php
Normal file
0
library/Icinga/Authentication/GroupMembership.php
Normal file
77
test/php/library/Icinga/Authentication/AuthTest.php
Normal file
77
test/php/library/Icinga/Authentication/AuthTest.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Icinga\Authentication;
|
||||
/**
|
||||
*
|
||||
* Test class for Auth
|
||||
* Created Fri, 07 Jun 2013 10:38:16 +0000
|
||||
*
|
||||
**/
|
||||
class AuthTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test for Auth::IsAuthenticated()
|
||||
*
|
||||
**/
|
||||
public function testIsAuthenticated()
|
||||
{
|
||||
$this->markTestIncomplete('testIsAuthenticated is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Auth::GetUsername()
|
||||
*
|
||||
**/
|
||||
public function testGetUsername()
|
||||
{
|
||||
$this->markTestIncomplete('testGetUsername is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Auth::GetEmail()
|
||||
*
|
||||
**/
|
||||
public function testGetEmail()
|
||||
{
|
||||
$this->markTestIncomplete('testGetEmail is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Auth::SetAuthenticatedUser()
|
||||
*
|
||||
**/
|
||||
public function testSetAuthenticatedUser()
|
||||
{
|
||||
$this->markTestIncomplete('testSetAuthenticatedUser is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Auth::ForgetAuthentication()
|
||||
*
|
||||
**/
|
||||
public function testForgetAuthentication()
|
||||
{
|
||||
$this->markTestIncomplete('testForgetAuthentication is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Auth::HasPermission()
|
||||
*
|
||||
**/
|
||||
public function testHasPermission()
|
||||
{
|
||||
$this->markTestIncomplete('testHasPermission is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Auth::GetInstance()
|
||||
* Note: This method is static!
|
||||
*
|
||||
**/
|
||||
public function testGetInstance()
|
||||
{
|
||||
$this->markTestIncomplete('testGetInstance is not implemented yet');
|
||||
}
|
||||
|
||||
}
|
31
test/php/library/Icinga/Authentication/BackendTest.php
Normal file
31
test/php/library/Icinga/Authentication/BackendTest.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Icinga\Authentication;
|
||||
/**
|
||||
*
|
||||
* Test class for Backend
|
||||
* Created Fri, 07 Jun 2013 10:38:16 +0000
|
||||
*
|
||||
**/
|
||||
class BackendTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test for Backend::HasUsername()
|
||||
*
|
||||
**/
|
||||
public function testHasUsername()
|
||||
{
|
||||
$this->markTestIncomplete('testHasUsername is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for Backend::Authenticate()
|
||||
*
|
||||
**/
|
||||
public function testAuthenticate()
|
||||
{
|
||||
$this->markTestIncomplete('testAuthenticate is not implemented yet');
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Icinga\Authentication;
|
||||
/**
|
||||
*
|
||||
* Test class for Ldapuserbackend
|
||||
* Created Fri, 07 Jun 2013 10:38:16 +0000
|
||||
*
|
||||
**/
|
||||
class LdapuserbackendTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test for LdapUserBackend::HasUsername()
|
||||
*
|
||||
**/
|
||||
public function testHasUsername()
|
||||
{
|
||||
$this->markTestIncomplete('testHasUsername is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for LdapUserBackend::Authenticate()
|
||||
*
|
||||
**/
|
||||
public function testAuthenticate()
|
||||
{
|
||||
$this->markTestIncomplete('testAuthenticate is not implemented yet');
|
||||
}
|
||||
|
||||
}
|
23
test/php/library/Icinga/Authentication/StorableTest.php
Normal file
23
test/php/library/Icinga/Authentication/StorableTest.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Icinga\Authentication;
|
||||
/**
|
||||
*
|
||||
* Test class for Storable
|
||||
* Created Fri, 07 Jun 2013 10:38:16 +0000
|
||||
*
|
||||
**/
|
||||
class StorableTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test for Storable::Create()
|
||||
* Note: This method is static!
|
||||
*
|
||||
**/
|
||||
public function testCreate()
|
||||
{
|
||||
$this->markTestIncomplete('testCreate is not implemented yet');
|
||||
}
|
||||
|
||||
}
|
31
test/php/library/Icinga/Authentication/UserBackendTest.php
Normal file
31
test/php/library/Icinga/Authentication/UserBackendTest.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Icinga\Authentication;
|
||||
/**
|
||||
*
|
||||
* Test class for Userbackend
|
||||
* Created Fri, 07 Jun 2013 10:38:16 +0000
|
||||
*
|
||||
**/
|
||||
class UserbackendTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test for UserBackend::HasUsername()
|
||||
*
|
||||
**/
|
||||
public function testHasUsername()
|
||||
{
|
||||
$this->markTestIncomplete('testHasUsername is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for UserBackend::Authenticate()
|
||||
*
|
||||
**/
|
||||
public function testAuthenticate()
|
||||
{
|
||||
$this->markTestIncomplete('testAuthenticate is not implemented yet');
|
||||
}
|
||||
|
||||
}
|
67
test/php/library/Icinga/Authentication/UserTest.php
Normal file
67
test/php/library/Icinga/Authentication/UserTest.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Icinga\Authentication;
|
||||
/**
|
||||
*
|
||||
* Test class for User
|
||||
* Created Fri, 07 Jun 2013 10:38:16 +0000
|
||||
*
|
||||
**/
|
||||
class UserTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test for User::ListGroups()
|
||||
*
|
||||
**/
|
||||
public function testListGroups()
|
||||
{
|
||||
$this->markTestIncomplete('testListGroups is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for User::IsMemberOf()
|
||||
*
|
||||
**/
|
||||
public function testIsMemberOf()
|
||||
{
|
||||
$this->markTestIncomplete('testIsMemberOf is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for User::GetPermissionList()
|
||||
*
|
||||
**/
|
||||
public function testGetPermissionList()
|
||||
{
|
||||
$this->markTestIncomplete('testGetPermissionList is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for User::HasPermission()
|
||||
*
|
||||
**/
|
||||
public function testHasPermission()
|
||||
{
|
||||
$this->markTestIncomplete('testHasPermission is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for User::GrantPermission()
|
||||
*
|
||||
**/
|
||||
public function testGrantPermission()
|
||||
{
|
||||
$this->markTestIncomplete('testGrantPermission is not implemented yet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for User::RevokePermission()
|
||||
*
|
||||
**/
|
||||
public function testRevokePermission()
|
||||
{
|
||||
$this->markTestIncomplete('testRevokePermission is not implemented yet');
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user