#5620: fixtures not loaded when using autoFixtures = true
------------------------------------------------------+---------------------
Reporter: dz | Owner:
Type: Bug | Status: new
Priority: Medium | Milestone: 1.2.x.x
Component: Test Suite | Version: RC3
Severity: Normal | Resolution:
Keywords: unit tests, fixtures, controllers, dz | Php_version: n/a
Cake_version: revision 7759 |
------------------------------------------------------+---------------------
Comment (by dz):
Hi,[[BR]]
[[BR]]
there seems to be another problem:[[BR]]
[[BR]]
if I set:
{{{
var $autoFixtures = false;
var $fixtures = array('app.category', 'app.menu');
}}}
in CategoriesControllerTest, I get my data loaded from a fixture file for
categories, but no for menu. It seems it loads data just from the model
directly (and automatically, $uses in controller has no effect) related to
the controller.[[BR]]
[[BR]]
A similar problem occurs when I manually import models in a controller
using App::import. Even if I add the fixture to var $fixtures, it still
uses data from the default table.[[BR]]
[[BR]]
regards[[BR]]
danielz
--
Ticket URL: <https://trac.cakephp.org/ticket/5620#comment:1>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---