![]() |
![]()
| ![]() |
![]()
NAMEInterchange6::Test::Role::Fixtures ATTRIBUTESFixtures are not installed in the database until the attribute is called. This is achieved by all accessors being lazy and so builders exist for each accessor to install the fixtures on demand. addressesDepends on users, states (possibly) and countries. countriesPopulated via Interchange6::Schema::Populate::CountryLocale. rolesordersshipment_carriersshipment_ratesprice_modifiersproductsattributesColours, sizes and heights for products. FIXME: attributes for other things to be added? inventorymediamessage_typesPopulated via Interchange6::Schema::Populate::MessageType. navigationstatesPopulated via Interchange6::Schema::Populate::StateLocale. taxesuri_redirectsusers[qw( username email password nickname )], [ 'customer1', 'customer1@example.com', 'c1passwd', 'Cust1' ], [ 'customer2', 'customer2@example.com', 'c1passwd', 'Cust2' ], [ 'customer3', 'customer3@example.com', 'c1passwd', 'Cust3' ], [ 'admin1', 'admin1@example.com', 'a1passwd', 'Deity1' ], [ 'admin2', 'admin2@example.com', 'a2passwd', 'Deity2' ], zonesPopulated via Interchange6::Schema::Populate::Zone. METHODSAll attributes have a corresponding "clear_$attribute" method which deletes all rows from the corresponding table and clears the accessor. Each also has a "has_$attribute" accessor which returns true if the accessor has been set and false otherwise. All attributes are created lazy and are set on access. The full list of clear/has methods are:
clear_all_fixturesThis additional method calls all of the clear_$accessor methods. load_all_fixturesLoads all fixtures.
|