Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Running tests : Table cm_co_extended_types not found ?

Subject: COmanage Developers List

List archive

[comanage-dev] Running tests : Table cm_co_extended_types not found ?


Chronological Thread 
  • From: Tom Zeller <>
  • To:
  • Subject: [comanage-dev] Running tests : Table cm_co_extended_types not found ?
  • Date: Thu, 3 Aug 2017 17:56:19 -0500
  • Ironport-phdr: 9a23:DI9v1xTTvGmfJKS4HzWmUgyi9dpsv+yvbD5Q0YIujvd0So/mwa6yZhON2/xhgRfzUJnB7Loc0qyN4vCmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY08GDXhMJ+j6xVvQyvqABkzo7IfI2YLuZycr/Bcd4YQ2dKQ8ZfVzZGAoO5d4YBEe0BPeNFpIb+uVQOqR++Che2BOjyzTJImn730rM+0+QlDw7GxhctH8kWsHTUstr1LqYSXvyvw6nM0TrDaP1X2Tjn6IjPbxAhueuAUq53ccrU0EQiER7OgFaIqYH9IT+Y1/gBvmqe4upuVu+gkHIrpgR+rzSz2ssjl4zEiZ4Jxl/Z8Ch0xZg5KNO5RUJjY9OpH4FcuzyYOoZyWM8vTWBltDwkxrAIvZO2ejUBxo49yB7FcfOHdpCF4hL9W+aVJjd1nHdld6i+hxa26ESg0/H8WtWt3FdFsCZInNjBumoC1xzU7ciHRf998Vm71TmT0ADT7/lIIUEylaXFN54s2qA8m5sPvUnBGyL2lkb7g7SKekgh9eWk9/jrbajjq5CAK4N7lwTzP6EwlsGxAOk0Kg0OUHKa+eS42r3j50r5QLBSg/0qk6jWrpTaJcAFqa6jGAJVyZ4j6xahADe80dQXgWMILFZZdxKAgYnpNEvOIPflDfenmVijjDBrx/XeMr37HprNNmTDkKvmfbtl90Fczw8zwspZ551OBbEOPuv/VVLvu9zGFRI5Nw20w/37CNVmyI8SQ2OPAqmFMKzMq1+I4PwgI/WSaIMPpjnyNuUltLbSiioynloUe6Cm0N4bZW6QH/J6Ll+fbGa2xNoNDDQkpA07GdDtjRWwXDpXamz6C74u6zU/BZiOFp/DS5qsi7WF1yCkEYdRe3gAAVeJRyS7P76YUusBPXrBavRqlSYJAOCs

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



Archive powered by MHonArc 2.6.19.

Top of Page