Bug 15774: (follow-up) Address QA issues
[koha.git] / t / Members_AttributeTypes.t
index 6bb58ae..42b04d5 100755 (executable)
@@ -24,7 +24,7 @@ use Module::Load::Conditional qw/check_install/;
 
 BEGIN {
     if ( check_install( module => 'Test::DBIx::Class' ) ) {
-        plan tests => 10;
+        plan tests => 8;
     } else {
         plan skip_all => "Need Test::DBIx::Class"
     }
@@ -32,12 +32,7 @@ BEGIN {
 
 use_ok('C4::Members::AttributeTypes');
 
-use Test::DBIx::Class {
-    schema_class => 'Koha::Schema',
-    connect_info => ['dbi:SQLite:dbname=:memory:','',''],
-    connect_opts => { name_sep => '.', quote_char => '`', },
-    fixture_class => '::Populate',
-}, 'BorrowerAttributeType', 'Category' ;
+use Test::DBIx::Class;
 
 fixtures_ok [
     Category => [
@@ -48,13 +43,13 @@ fixtures_ok [
     [
         'code',             'description',
         'repeatable',       'unique_id',
-        'opac_display',     'password_allowed',
+        'opac_display',
         'staff_searchable', 'authorised_value_category',
         'display_checkout', 'category_code',
         'class'
     ],
-    [ 'one', 'ISBN', '1', '1', '1', '1', '1', 'red',  '1', 'orange', 'green' ],
-    [ 'two', 'ISSN', '0', '0', '0', '0', '0', 'blue', '0', 'yellow', 'silver' ]
+    [ 'one', 'ISBN', '1', '1', '1', '1', 'red',  '1', 'orange', 'green' ],
+    [ 'two', 'ISSN', '0', '0', '0', '0', 'blue', '0', 'yellow', 'silver' ]
 
     ],
 ], 'add fixtures';
@@ -74,14 +69,6 @@ is( $members_attributetypes[0]->{'class'},
 is( $members_attributetypes[1]->{'class'},
     'silver', 'Second class value is silver' );
 
-ok( C4::Members::AttributeTypes::AttributeTypeExists('one'),
-    'checking an attribute type exists' );
-
-ok(
-    !C4::Members::AttributeTypes::AttributeTypeExists('three'),
-    "checking a attribute that isn't in the code doesn't exist"
-);
-
 ok( C4::Members::AttributeTypes->fetch('one'), "testing fetch feature" );
 
 ok( !C4::Members::AttributeTypes->fetch('FAKE'),