comparison mod_lib_ldap/dev/t/02-vcard.t @ 829:9c134ff07d0f

Test for present avatar data in user vCard
author Rob Hoelz <rob@hoelz.ro>
date Tue, 18 Sep 2012 00:16:12 +0200
parents 855b28e10b39
children 8e293681deb5
comparison
equal deleted inserted replaced
828:855b28e10b39 829:9c134ff07d0f
93 FN => 'Jack Testerson', 93 FN => 'Jack Testerson',
94 NICKNAME => 'four', 94 NICKNAME => 'four',
95 }); 95 });
96 96
97 test_vcard(five => { 97 test_vcard(five => {
98 FN => 'Jimmy Testerson', 98 FN => 'Jimmy Testerson',
99 NICKNAME => 'five', 99 NICKNAME => 'five',
100 PHOTO => { 100 _avatar => $photo_data,
101 TYPE => 'image/jpeg', 101 _avatar_type => 'image/jpeg',
102 BINVAL => $photo_data,
103 }
104 }); 102 });
105 103
106 __DATA__ 104 __DATA__
107 /9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg 105 /9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg
108 SlBFRyB2NjIpLCBkZWZhdWx0IHF1YWxpdHkK/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMP 106 SlBFRyB2NjIpLCBkZWZhdWx0IHF1YWxpdHkK/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMP