Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
test(Admin/User): skip some tests without email system accounts
Browse files Browse the repository at this point in the history
Change-Id: Ic3ed34c9d2115b4f67d5dc9d1f443ec7cc78a1e1
Reviewed-on: http://gerrit.tine20.com/customers/19131
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
  • Loading branch information
pschuele committed Feb 16, 2021
1 parent 0b74718 commit 78785ce
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/tine20/Admin/Controller/UserTest.php
@@ -1,20 +1,19 @@
<?php
/**
* Tine 2.0 - http://www.tine20.org
*
* Test class for Admin_Controller_User
*
* @package Admin
* @license http://www.gnu.org/licenses/agpl.html
* @copyright Copyright (c) 2008-2020 Metaways Infosystems GmbH (http://www.metaways.de)
* @copyright Copyright (c) 2008-2021 Metaways Infosystems GmbH (http://www.metaways.de)
* @author Philipp Schüle <p.schuele@metaways.de>
*/

/**
* Test class for Admin_Controller_User
*/
class Admin_Controller_UserTest extends TestCase
{
public function testAddUserWithAlreadyExistingEmailData()
{
$this->_skipWithoutEmailSystemAccountConfig();
$this->_skipIfLDAPBackend();

$userToCreate = TestCase::getTestUser([
Expand Down Expand Up @@ -168,6 +167,8 @@ public function testUpdateUserWithEmailButNoPassword()

public function testAddUserWithExistingMail()
{
$this->_skipWithoutEmailSystemAccountConfig();

$pw = Tinebase_Record_Abstract::generateUID(10);
$userToCreate = TestCase::getTestUser();
$userToCreate->accountEmailAddress = Tinebase_Core::getUser()->accountEmailAddress;
Expand Down

0 comments on commit 78785ce

Please sign in to comment.