6 use Test
::More
'tests' => 4;
14 my $db = NewDB
->new();
25 $u = User
->new( id
=> $u->id );
29 is_deeply
( $u->available_translations, [] );
31 $u->load_i18n( language
=> 'en' );
32 $u->i18n->signature( 'hello2' );
35 is_deeply
( $u->available_translations, [ 'en' ] );
37 $u->load_i18n( language
=> 'ru' );
38 is_deeply
( $u->available_translations, [ 'en' ] );
40 $u->load_i18n( language
=> 'ua' );
41 is_deeply
( $u->available_translations, [ 'en' ] );
43 $u->delete( cascade
=> 1 );