Revision b5eae4e1
Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt
t/wh/transfer.t | ||
---|---|---|
3 | 3 |
|
4 | 4 |
use lib 't'; |
5 | 5 |
|
6 |
use SL::Dev::Part; |
|
7 |
|
|
6 | 8 |
use_ok 'Support::TestSetup'; |
7 | 9 |
use_ok 'SL::DB::Bin'; |
8 | 10 |
use_ok 'SL::DB::Part'; |
... | ... | |
26 | 28 |
SL::DB::Manager::Warehouse->delete_all(where => [ description => NAME() ]); |
27 | 29 |
|
28 | 30 |
# Create test data |
29 |
$part = SL::DB::Part->new(unit => 'mg', description => NAME(), partnumber => NAME(), part_type => 'part'); |
|
30 |
$part->save(); |
|
31 |
$part = SL::Dev::Part::create_part(unit => 'mg', description => NAME(), partnumber => NAME())->save(); |
|
31 | 32 |
|
32 | 33 |
is(ref($part), 'SL::DB::Part', 'loading a part to test with id ' . $part->id); |
33 | 34 |
|
Auch abrufbar als: Unified diff
t/wh/transfer.t - Refactoring mit SL::Dev::Part::create_part