Test::D...pulation(3)
okay bestie, welcome to Test::D...pulation(3) β thatβs the short header for Test::DBIx::Class::FixtureCommand::Population, and it lives in the User Contributed Perl Documentation section. donβt let the abbreviation jump-scare you π
πΈ NAME πΈ
Test::DBIx::Class::FixtureCommand::Population β Use your fixtures in a test case. literally thatβs the whole serve. π
β¨ SYNOPSIS β¨
okay so hereβs the group-chat-approved starter pack, and yes, copy it exactly:
use Test::Most;
use Test::DBIx::Class
-schema_class=>'MusicBase::Schema',
-fixture_class => '::Population,
qw(Artist);
fixtures_ok ['all_tables'];
fixtures_ok ['more_sets', 'and_even_more_sets'];
## You test cases ##
done_testing;
that ## You test cases ## comment is your little main-character moment β¨
π¦ DESCRIPTION π¦
this is the integration between DBIx::Class::Migration::Population and Test::DBIx::Class. It does the Test::DBIx::Class::Role::FixtureCommand Role β yes, capital-R Role, weβre being fancy. π
and what does that give you? It allows you to pass an arrayref of fixture set names to fixtures_ok. thatβs the whole iconic move. π₯
π SEE ALSO π
DBIx::Class::Migration::PopulationTest::DBIx::Class
π AUTHOR π
See DBIx::Class::Migration for author information. no cap, thatβs where the author lore lives. π«Ά
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information. the legal tea is over there, bestie. ββ¨
okay thatβs the whole page π brought to you by perl v5.42.0, dated 2020-06-03, with the page identifier Test::D...pulation(3). periodt. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class-Migration 0.075-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms