Page MenuHomePhorge

Addressbook.php
No OneTemporary

Size
865 B
Referenced Files
None
Subscribers
None

Addressbook.php

<?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

Mime Type
text/x-php
Expires
Tue, Aug 18, 7:53 AM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1136943
Default Alt Text
Addressbook.php (865 B)

Event Timeline