Lines 183-186
subtest 'elasticsearch_to_document() hooks tests' => sub {
Link Here
|
183 |
ok( ref( $documents->[0] ) eq 'HASH', 'The document is a HASH' ); |
183 |
ok( ref( $documents->[0] ) eq 'HASH', 'The document is a HASH' ); |
184 |
ok( exists( $documents->[0]->{ppn} ), 'Generated field ppn exists' ); |
184 |
ok( exists( $documents->[0]->{ppn} ), 'Generated field ppn exists' ); |
185 |
ok( $documents->[0]->{ppn}->[0] eq '123456789', 'Field ppn contains 123456789' ); |
185 |
ok( $documents->[0]->{ppn}->[0] eq '123456789', 'Field ppn contains 123456789' ); |
|
|
186 |
|
187 |
Koha::Plugins->RemovePlugins; |
188 |
$schema->storage->txn_rollback; |
186 |
}; |
189 |
}; |
187 |
- |
|
|