mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Fix some more tests that don't work anymore due to things changing / files moved / other reasons
This commit is contained in:
parent
1dc9dd0c6b
commit
806aa542a1
@ -22,11 +22,13 @@ require_once realpath(__DIR__.'/../WidgetBaseTest.php');
|
||||
|
||||
use EGroupware\Api\Etemplate;
|
||||
|
||||
class EntryTest extends \EGroupware\Api\Etemplate\WidgetBaseTest {
|
||||
class ContactEntryTest extends \EGroupware\Api\Etemplate\WidgetBaseTest
|
||||
{
|
||||
|
||||
const TEST_TEMPLATE = 'api.entry_test_contact';
|
||||
|
||||
public static function setUpBeforeClass() : void {
|
||||
public static function setUpBeforeClass() : void
|
||||
{
|
||||
parent::setUpBeforeClass();
|
||||
}
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
namespace EGroupware\Api\Storage;
|
||||
|
||||
require_once __DIR__ . '/../LoggedInTest.php';
|
||||
use EGroupware\Api\LoggedInTest as LoggedInTest;
|
||||
|
||||
class CustomfieldsTest extends LoggedInTest
|
||||
@ -20,19 +21,19 @@ class CustomfieldsTest extends LoggedInTest
|
||||
protected $customfields = null;
|
||||
|
||||
protected $simple_field = array(
|
||||
'app' => self::APP,
|
||||
'name' => 'test_field',
|
||||
'label' => 'Custom field',
|
||||
'type' => 'text',
|
||||
'type2' => array(),
|
||||
'help' => 'Custom field created for automated testing by CustomfieldsTest',
|
||||
'values' => null,
|
||||
'len' => null,
|
||||
'rows' => null,
|
||||
'order' => null,
|
||||
'needed' => null,
|
||||
'private' => array()
|
||||
);
|
||||
'app' => self::APP,
|
||||
'name' => 'test_field',
|
||||
'label' => 'Custom field',
|
||||
'type' => 'text',
|
||||
'type2' => array(),
|
||||
'help' => 'Custom field created for automated testing by CustomfieldsTest',
|
||||
'values' => null,
|
||||
'len' => null,
|
||||
'rows' => null,
|
||||
'order' => null,
|
||||
'needed' => null,
|
||||
'private' => array()
|
||||
);
|
||||
|
||||
public function tearDown(): void
|
||||
{
|
||||
@ -209,35 +210,35 @@ class CustomfieldsTest extends LoggedInTest
|
||||
// Expected options, file
|
||||
return array(
|
||||
array(array(
|
||||
'' => 'Select',
|
||||
'Α'=> 'α Alpha',
|
||||
'Β'=> 'β Beta',
|
||||
'Γ'=> 'γ Gamma',
|
||||
'Δ'=> 'δ Delta',
|
||||
'Ε'=> 'ε Epsilon',
|
||||
'Ζ'=> 'ζ Zeta',
|
||||
'Η'=> 'η Eta',
|
||||
'Θ'=> 'θ Theta',
|
||||
'Ι'=> 'ι Iota',
|
||||
'Κ'=> 'κ Kappa',
|
||||
'Λ'=> 'λ Lambda',
|
||||
'Μ'=> 'μ Mu',
|
||||
'Ν'=> 'ν Nu',
|
||||
'Ξ'=> 'ξ Xi',
|
||||
'Ο'=> 'ο Omicron',
|
||||
'Π'=> 'π Pi',
|
||||
'Ρ'=> 'ρ Rho',
|
||||
'Σ'=> 'σ Sigma',
|
||||
'Τ'=> 'τ Tau',
|
||||
'Υ'=> 'υ Upsilon',
|
||||
'Φ'=> 'φ Phi',
|
||||
'Χ'=> 'χ Chi',
|
||||
'Ψ'=> 'ψ Psi',
|
||||
'Ω'=> 'ω Omega'
|
||||
), 'greek_options.php'),
|
||||
'' => 'Select',
|
||||
'Α' => 'α Alpha',
|
||||
'Β' => 'β Beta',
|
||||
'Γ' => 'γ Gamma',
|
||||
'Δ' => 'δ Delta',
|
||||
'Ε' => 'ε Epsilon',
|
||||
'Ζ' => 'ζ Zeta',
|
||||
'Η' => 'η Eta',
|
||||
'Θ' => 'θ Theta',
|
||||
'Ι' => 'ι Iota',
|
||||
'Κ' => 'κ Kappa',
|
||||
'Λ' => 'λ Lambda',
|
||||
'Μ' => 'μ Mu',
|
||||
'Ν' => 'ν Nu',
|
||||
'Ξ' => 'ξ Xi',
|
||||
'Ο' => 'ο Omicron',
|
||||
'Π' => 'π Pi',
|
||||
'Ρ' => 'ρ Rho',
|
||||
'Σ' => 'σ Sigma',
|
||||
'Τ' => 'τ Tau',
|
||||
'Υ' => 'υ Upsilon',
|
||||
'Φ' => 'φ Phi',
|
||||
'Χ' => 'χ Chi',
|
||||
'Ψ' => 'ψ Psi',
|
||||
'Ω' => 'ω Omega'
|
||||
), 'greek_options.php'),
|
||||
array(array(
|
||||
'View Subs' => "egw_open('','infolog','list',{action:'sp',action_id:widget.getRoot().getArrayMgr('content').getEntry('info_id')},'infolog','infolog');"
|
||||
), 'infolog_subs_option.php')
|
||||
'View Subs' => "egw_open('','infolog','list',{action:'sp',action_id:widget.getRoot().getArrayMgr('content').getEntry('info_id')},'infolog','infolog');"
|
||||
), 'infolog_subs_option.php')
|
||||
);
|
||||
}
|
||||
|
||||
@ -302,8 +303,8 @@ class CustomfieldsTest extends LoggedInTest
|
||||
protected function get_another_user()
|
||||
{
|
||||
$accounts = $GLOBALS['egw']->accounts->search(array(
|
||||
'type' => 'accounts'
|
||||
));
|
||||
'type' => 'accounts'
|
||||
));
|
||||
unset($accounts[$GLOBALS['egw_info']['user']['account_id']]);
|
||||
if(count($accounts) == 0)
|
||||
{
|
||||
|
@ -14,8 +14,10 @@
|
||||
namespace EGroupware\Api\Storage;
|
||||
|
||||
|
||||
require_once __DIR__ . '/../../src/Storage/Tracking.php';
|
||||
|
||||
class TestTracking extends Tracking {
|
||||
class TestTracking extends Tracking
|
||||
{
|
||||
|
||||
var $app = 'test';
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
namespace EGroupware\Api\Storage;
|
||||
|
||||
require_once __DIR__ . '/../LoggedInTest.php';
|
||||
require_once __DIR__ . '/TestTracking.php';
|
||||
|
||||
use EGroupware\Api;
|
||||
@ -22,18 +23,18 @@ class TrackingTest extends LoggedInTest
|
||||
const APP = 'test';
|
||||
|
||||
protected $simple_field = array(
|
||||
'app' => self::APP,
|
||||
'name' => 'test_field',
|
||||
'label' => 'Custom field',
|
||||
'type' => 'text',
|
||||
'type2' => array(),
|
||||
'help' => 'Custom field created for automated testing by CustomfieldsTest',
|
||||
'values' => null,
|
||||
'len' => null,
|
||||
'rows' => null,
|
||||
'order' => null,
|
||||
'needed' => null,
|
||||
'private' => array()
|
||||
'app' => self::APP,
|
||||
'name' => 'test_field',
|
||||
'label' => 'Custom field',
|
||||
'type' => 'text',
|
||||
'type2' => array(),
|
||||
'help' => 'Custom field created for automated testing by CustomfieldsTest',
|
||||
'values' => null,
|
||||
'len' => null,
|
||||
'rows' => null,
|
||||
'order' => null,
|
||||
'needed' => null,
|
||||
'private' => array()
|
||||
);
|
||||
|
||||
/**
|
||||
@ -57,8 +58,8 @@ class TrackingTest extends LoggedInTest
|
||||
|
||||
// Get another user
|
||||
$accounts = $GLOBALS['egw']->accounts->search(array(
|
||||
'type' => 'accounts'
|
||||
));
|
||||
'type' => 'accounts'
|
||||
));
|
||||
unset($accounts[$GLOBALS['egw_info']['user']['account_id']]);
|
||||
if(count($accounts) == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user