<p><a href="https://github.com/KES777" class="user-mention">@KES777</a> Actually, looking at the overall diff there seems to be no test case for the actual problem you encountered. At this point in the project's lifetime there must be an integration (not unit) test for almost every behavioral change. Please, if time permits adapt the test from <a href="https://rt.cpan.org/Ticket/Display.html?id=104375#txn-1495758">https://rt.cpan.org/Ticket/Display.html?id=104375#txn-1495758</a> as a proper .t based on DBICTest-&gt;init_schema. For the <code>sub new ...</code> part use an early load as seen here: <a href="https://github.com/dbsrgits/dbix-class/blob/current/blead/t/73oracle_blob.t#L13-L27">https://github.com/dbsrgits/dbix-class/blob/current/blead/t/73oracle_blob.t#L13-L27</a></p>

<p>You asked in <a href="https://rt.cpan.org/Ticket/Display.html?id=104375#txn-1495758">https://rt.cpan.org/Ticket/Display.html?id=104375#txn-1495758</a> whether the current test schema/fixture are documented. They unfortunately aren't, several people attempted to and ended up with nothing so far. The main set of relations is</p>

<pre><code>Artist =&gt; CDs =&gt; Tracks =&gt; cd_single (back to CDs)
</code></pre>

<p>There are other tables as well, but the main part of tests run against these. The preloaded data can be found here: <a href="https://github.com/dbsrgits/dbix-class/blob/current/blead/t/lib/DBICTest.pm#L428">https://github.com/dbsrgits/dbix-class/blob/current/blead/t/lib/DBICTest.pm#L428</a>. Alternatively you can elect to populate the schema yourself: <a href="https://github.com/dbsrgits/dbix-class/blob/current/blead/t/prefetch/manual.t#L13-L48">https://github.com/dbsrgits/dbix-class/blob/current/blead/t/prefetch/manual.t#L13-L48</a></p>

<p>Cheers!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/dbsrgits/dbix-class/pull/78#issuecomment-102177670">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AASeAj9Q0V3s_y5g0pHXKHeIj7I-LQQdks5oJQ1WgaJpZM4EYUtO.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/dbsrgits/dbix-class/pull/78#issuecomment-102177670"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>