Revision 63410aa6
Von Sven Schöling 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; |
|
6 |
use SL::Dev::Part qw(new_part);
|
|
7 | 7 |
|
8 | 8 |
use_ok 'Support::TestSetup'; |
9 | 9 |
use_ok 'SL::DB::Bin'; |
... | ... | |
28 | 28 |
SL::DB::Manager::Warehouse->delete_all(where => [ description => NAME() ]); |
29 | 29 |
|
30 | 30 |
# Create test data |
31 |
$part = SL::Dev::Part::create_part(unit => 'mg', description => NAME(), partnumber => NAME())->save();
|
|
31 |
$part = new_part(unit => 'mg', description => NAME(), partnumber => NAME())->save();
|
|
32 | 32 |
|
33 | 33 |
is(ref($part), 'SL::DB::Part', 'loading a part to test with id ' . $part->id); |
34 | 34 |
|
Auch abrufbar als: Unified diff
Tests: SL::Dev Änderungen übernommen