Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120822775
Addressbook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
865 B
Referenced Files
None
Subscribers
None
Addressbook.php
View Options
<?php
/**
* Test class to test rcube_addressbook class
*
* @package Tests
*/
class
Framework_Addressbook
extends
PHPUnit\Framework\TestCase
{
/**
* Test for get_col_values() method
*/
function
test_get_col_values
()
{
$data
=
[
'email'
=>
'test@test.com'
,
'other'
=>
'test'
];
$result
=
rcube_addressbook
::
get_col_values
(
'email'
,
$data
,
true
);
$this
->
assertSame
([
'test@test.com'
],
$result
);
$data
=
[
'email:home'
=>
'test@test.com'
,
'other'
=>
'test'
];
$result
=
rcube_addressbook
::
get_col_values
(
'email'
,
$data
,
true
);
$this
->
assertSame
([
'test@test.com'
],
$result
);
$data
=
[
'email:home'
=>
'test@test.com'
,
'other'
=>
'test'
];
$result
=
rcube_addressbook
::
get_col_values
(
'email'
,
$data
,
false
);
$this
->
assertSame
([
'home'
=>
[
'test@test.com'
]],
$result
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 9:55 AM (1 w, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
92/6a/297aa96f6ffa05df600d9f8659a2
Default Alt Text
Addressbook.php (865 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline