8 eval "use DBD::SQLite";
9 plan skip_all
=> "DBD::SQLite is required to run this test" if $@
;
18 my $db = NewDB
->new();
29 $ENV{ RDBO_I18N_LANG
} = 'ru';
30 $u = User
->new( id
=> $u->id );
34 is_deeply
( $u->i18n_available_translations, [] );
36 $u->i18n( 'en' )->signature( 'hello2' );
39 is
( $u->i18n_is_original_loaded(), 0 );
40 is_deeply
( $u->i18n_available_translations, [ 'ru' ] );
43 is_deeply
( $u->i18n_available_translations, [ 'en' ] );
46 is_deeply
( $u->i18n_available_translations, [ 'en' ] );
48 $u->delete( cascade
=> 1 );