Lines 236-241
is( $bookseller_result->in_storage, 1, 'build with only_fk = 1 creates the forei
Link Here
|
236 |
$bookseller = $builder->build({ |
236 |
$bookseller = $builder->build({ |
237 |
source => 'Aqbookseller', |
237 |
source => 'Aqbookseller', |
238 |
}); |
238 |
}); |
|
|
239 |
ok( length( $bookseller->{phone} ) <= 30, 'The length for a generated string should not be longer than the size of the DB field' ); |
239 |
delete $bookseller->{_fk}; |
240 |
delete $bookseller->{_fk}; |
240 |
$bookseller_from_db = $rs_aqbookseller->find($bookseller); |
241 |
$bookseller_from_db = $rs_aqbookseller->find($bookseller); |
241 |
is( $bookseller_from_db->in_storage, 1, 'build without the parameter only_sk stores the entry correctly' ); |
242 |
is( $bookseller_from_db->in_storage, 1, 'build without the parameter only_sk stores the entry correctly' ); |