Lines 22-28
Link Here
|
22 |
# Add more tests here!!! |
22 |
# Add more tests here!!! |
23 |
|
23 |
|
24 |
use Modern::Perl; |
24 |
use Modern::Perl; |
25 |
use Test::More tests => 16; |
25 |
use Test::More tests => 18; |
26 |
use Koha::Database; |
26 |
use Koha::Database; |
27 |
|
27 |
|
28 |
BEGIN { |
28 |
BEGIN { |
Lines 66-68
ok( ! index_exists( 'borrowers', 'xxx'), 'Constraint xxx does not exist' );
Link Here
|
66 |
|
66 |
|
67 |
ok( foreign_key_exists( 'borrowers', 'borrowers_ibfk_1' ), 'FK borrowers_ibfk_1 exists' ); |
67 |
ok( foreign_key_exists( 'borrowers', 'borrowers_ibfk_1' ), 'FK borrowers_ibfk_1 exists' ); |
68 |
ok( ! foreign_key_exists( 'borrowers', 'xxx' ), 'FK xxxx does not exist' ); |
68 |
ok( ! foreign_key_exists( 'borrowers', 'xxx' ), 'FK xxxx does not exist' ); |
69 |
- |
69 |
|
|
|
70 |
|
71 |
ok( primary_key_exists( 'borrowers', 'borrowernumber'), 'Borrowers has primary key on borrowernumber'); |
72 |
ok( ! primary_key_exists( 'borrowers', 'email'), 'Borrowers does not have a primary key on email'); |