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
blob6c4899cff1f2a9ce3b832020639e0964ec3ad159
1 #! /usr/bin/perl
3 use strict;
4 use warnings;
6 use Test::More 'tests' => 3;
8 use lib 't/lib';
10 use NewDB;
11 use User;
12 use User::Manager;
14 my $db = NewDB->new();
16 $db->init();
18 my $u = User->new(
19 name => 'vti',
20 orig_lang => 'ru',
21 user_i18n => { signature => 'привет' }
24 is( $u->name, 'vti' );
26 is( $u->orig_lang, 'ru' );
28 $u->save();
30 is( scalar @{ $u->user_i18n }, 3 );
32 $u->delete( cascade => 1 );