CakePHP Test Fixtures Drop My Tables Permanently After Running A Test Case

后端 未结 3 2089
说谎
说谎 2021-01-27 03:28

I\'m not sure what I\'ve done wrong in my CakePHP unit test configuration. Every time I run a test case, the model tables associated with my fixtures are missing form my test da

3条回答
  •  Happy的楠姐
    2021-01-27 03:55

    in your CakeTestCase class, just put a member dropTables:

    Comment =& ClassRegistry::init('Comment');
        $this->Comment->useDbConfig = 'test_suite';
      }
    

提交回复
热议问题