douli6605 2014-01-28 15:27 采纳率: 100%
浏览 34

蛋糕烘烤除了测试

I wonder how could I use the cake bake all command without filling the Test folder.

Because I'm getting an error, when I use this command :

Fatal Error Error: Call to undefined method App::getAssociated() in [C:\wamp\www
\myAppFolder\lib\Cake\Console\Command\Task\TestTask.php, line 394]

Everything works except Test baking, so cake bake all bakes Controller & Model but it fails when baking Test before baking Views...

In my job, we don't have time to care about Tests so if someone knows a way to block the test baking... would be a lot helpful !

EDIT :

If someone knows a way to fix the Fatal Error instead... Hint : I have this issue since I installed PHPUnit.

  • 写回答

1条回答 默认 最新

  • dragon5006 2014-01-28 15:39
    关注

    "All" means "all". Did you look at the documentation?

    To bake the views run

    cake bake view
    

    You can script any or all of these:

    cake bake db_config
    cake bake model
    cake bake view
    cake bake controller
    cake bake project
    cake bake fixture
    cake bake test
    cake bake plugin plugin_name
    

    Or use the interactive shell.

    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?