Interchange6::Test::Role::Fixtures
Fixtures 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.
Depends on users, states (possibly) and countries.
Populated via Interchange6::Schema::Populate::CountryLocale.
Colours, sizes and heights for products.
FIXME: attributes for other things to be added?
Populated via Interchange6::Schema::Populate::MessageType.
Populated via Interchange6::Schema::Populate::StateLocale.
[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' ],
Populated via Interchange6::Schema::Populate::Zone.
All 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_$attribute
has_$attribute
clear_addresses
clear_attributes
clear_countries
clear_inventory
clear_media
clear_message_types
clear_navigation
clear_orders
clear_price_modifiers
clear_products
clear_roles
clear_shipment_carriers
clear_shipment_rates
clear_states
clear_taxes
clear_users
clear_uri_redirects
clear_zones
has_addresses
has_attributes
has_countries
has_inventory
has_media
has_message_types
has_navigation
has_orders
has_price_modifiers
has_products
has_roles
has_shipment_carriers
has_shipment_rates
has_states
has_taxes
has_users
has_uri_redirects
has_zones
This additional method calls all of the clear_$accessor methods.
Loads all fixtures.
To install Interchange6::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Interchange6::Schema
CPAN shell
perl -MCPAN -e shell install Interchange6::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.