Fix search test for entity upgrade
This commit is contained in:
parent
1ab2d0b71c
commit
2980fd129f
3 changed files with 73 additions and 133 deletions
|
@ -7,4 +7,13 @@ use base 'DBIx::Class::ResultSet';
|
|||
|
||||
sub sales { shift->search_related('sales', @_) }
|
||||
|
||||
sub create_org {
|
||||
my ( $self, $org ) = @_;
|
||||
|
||||
return $self->create({
|
||||
organisation => $org,
|
||||
type => 'organisation',
|
||||
});
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Reference in a new issue