Yii Framework Forum: the CRUD test in the book - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

the CRUD test in the book why we test the CRUD functions, they are generated by the Yii?!

#1 User is offline   Cherif 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 05-June 09
  • Location:Algeria

Posted 24 December 2010 - 04:13 AM

Why we test Create, Read, Update and delete functions, they are generated by the Yii framework and i guess that they are already tested in the developement precess of the framework and the yii's goal is the reuse of code and DRY, is there an explaination for that?!!
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,338
  • Joined: 12-October 09
  • Location:Croatia

Posted 24 December 2010 - 04:30 AM

The code IS tested... but anything other can go wrong... for example database user permission can be set wrong... or something similar...
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 24 December 2010 - 05:10 AM

Besides that: In contrast to the framework code itself, the CRUD code represents a basis for your application. You usually will customize this code.
0

#4 User is offline   jefftulsa 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 168
  • Joined: 06-October 08
  • Location:Austin, TX

Posted 28 December 2010 - 12:36 AM

Please also refer to the "Was all that testing really necessary?" section on page 73 (chapter 5) that addresses this very topic.
0

#5 User is offline   Cherif 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 05-June 09
  • Location:Algeria

Posted 29 December 2010 - 09:30 AM

thank you all!!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users