comanage-dev - Re: [comanage-dev] Running tests : Table cm_co_extended_types not found ?
Subject: COmanage Developers List
List archive
- From: Benn Oshrin <>
- To: Tom Zeller <>
- Cc:
- Subject: Re: [comanage-dev] Running tests : Table cm_co_extended_types not found ?
- Date: Wed, 30 Aug 2017 07:45:23 -0400
- Ironport-phdr: 9a23:J6rWKxdzNDcb1Ooi/XeNEXk7lGMj4u6mDksu8pMizoh2WeGdxcS4ZR7h7PlgxGXEQZ/co6odzbGH4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Yr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hygbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTzFPDJ2yb4UPDOQPM+hXoIb/qFQSohWzHhWsCeH1xzNUmnP706833uI8Gg/GxgwgGNcOvWzJodrrMqcSV/2+wrDTzTXDdfNW2DH945XPfx86v/6MW7Rwcc3KxEkuEQPFkkufqZbjPzyLyuQBrXKX4PR9WuKykmMqrRx6rDu3xso0lIXFmoEYxkrA+Ch72oo5ONO1RFBhbdK6DJddtDmWO5ZqTs4hWW1ltjo2xqcYtZKmYiQG0ooryhHdZvGBboOG+AjsVPyLLjd9nH9leKywhxK18UW4yu38Ucy00FdUoSpAiNbMt3QN2wXJ5cWGVPdx5Eih1SyS2ADJ9O5LO0U0larcK5463r48jIYcsUPGHiPumUX2irGZdlk89+S29+jqYa/qq5ueOoNulw3zPLoiltahDegkMQUCR22b9v691L3n8035WrJKjvgun6bCrp/aI8IbpqmiDg9U1IYj9wiwDy2g0NsGgXkLMkhJdwyagIj0I13OOuz3De+jg1Swlzdm3+zJPrrkAprXKHjMirjhcqhk50FB1gUz08tS55ZVCrEaPPLzQVH9uMbZDh8/Lwy73fznCNNj2YMCR26DGLGWP77PsQzA2uV6H+6JLL0YvDLwMbBx++zjiXs0g3cGZamkx5ocYXSzGetpOUKEeTznhdJXQkkQuQ9rZuHsjhWlSj5JZnD6C6gx4Dc8IIOgEYrZQI2x2vqM0DrtTc4eXXxPFl3ZSSSgTI6DQfpZLXvKesI=
Sorry, I completely missed this message. Did you ever figure it out? The
error message suggests the table was not created in the first place...
If you went directly into the database was the table present?
On 8/3/17 6:56 PM, Tom Zeller wrote:
> Hi,
>
> I'm trying to run unit tests (for the first time using Docker) from
> the command line :
>
> ./Console/cake test app Model/Co --stderr
>
> But I'm getting an error :
>
> MissingTableException: Table cm_co_extended_types for model
> CoExtendedType was not found in datasource test.
>
> Here is my do-nothing test :
>
> public function testNothing() {
>
> $params = array();
> $params['conditions'] = array();
> $params['conditions']['Co.id'] = 2;
> $params['contain'] = array();
> $params['contain'][] = 'CoExtendedType';
> $co = $this->Co->find('first', $params);
> }
>
> If I comment out the 'CoExtendedType' param, the error is not thrown :
>
> // $params['contain'][] = 'CoExtendedType';
>
> I guessed and tried adding :
>
> App::uses('CoExtendedType', 'Model');
> $this->CoExtendedType = ClassRegistry::init('CoExtendedType');
>
> But no luck. I really have no idea. Clues welcome.
>
> Thanks !
> Tom
>
> P.S. tried hotfix-2.0.x and develop branches
>
- [comanage-dev] Running tests : Table cm_co_extended_types not found ?, Tom Zeller, 08/03/2017
- Re: [comanage-dev] Running tests : Table cm_co_extended_types not found ?, Benn Oshrin, 08/30/2017
Archive powered by MHonArc 2.6.19.