repo.or.cz
/
blog.pm-common-perl-mods.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rose::DBx::Object::I18N. Rename due to CPAN convention. Documentation. Preparing...
[blog.pm-common-perl-mods.git]
/
Rose-DBx-Object-I18N
/
t
/
insert-with-i18n-data.t
blob
6c4899cff1f2a9ce3b832020639e0964ec3ad159
1
#! /usr/bin/perl
2
3
use
strict
;
4
use
warnings
;
5
6
use
Test
::
More
'tests'
=>
3
;
7
8
use
lib
't/lib'
;
9
10
use
NewDB
;
11
use
User
;
12
use
User
::
Manager
;
13
14
my
$db
=
NewDB
->
new
();
15
16
$db
->
init
();
17
18
my
$u
=
User
->
new
(
19
name
=>
'vti'
,
20
orig_lang
=>
'ru'
,
21
user_i18n
=> {
signature
=>
'привет'
}
22
);
23
24
is
(
$u
->
name
,
'vti'
);
25
26
is
(
$u
->
orig_lang
,
'ru'
);
27
28
$u
->
save
();
29
30
is
(
scalar
@
{
$u
->
user_i18n
},
3
);
31
32
$u
->
delete
(
cascade
=>
1
);
33
34
1
;