unit testing - Cakephp Fixtures automatic truncate table not working properly -



unit testing - Cakephp Fixtures automatic truncate table not working properly -

i switched on cakephp 2.2.5 2.3 , auto-truncate table no longer working in 2.3.

what did in 2.2.5 testing framework using little tables no relations aka foreign keys constraints , fixture import , auto-truncate table worked flawlessly.

until confirmed wanted utilize cakephp , started developing application using caketestcase again. stopped working. info still in test database after imported first time. sec time indicate fails auto-load fixtures because info same ids exist.

so started suspect because foreign key constraints had in current tables.

i searched web , noticed quite lot of people having same issue there isn't real solution yet.

the 1 seems solution here: http://cakephp.lighthouseapp.com/projects/42648/tickets/2905-tests-fixture-table-ar-not-truncate-when-droptable-false

however, tried turning on $droptables = true, didn't work. , tried modifying cakefixturemanager.php suggested , didn't work either.

does know how prepare issue?

unit-testing cakephp truncate

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -