- Profile manager
- Phase 'ListEmptyProfile'
- Phase 'ListNonEmptyProfile'
- Phrase create profile
- Phase edit profile
- Phase delete profile
Practical TDD - git flow - markdown
- I want to see page title 'list profile'
- I want to see web page display "Empty list profile"
- Install automation tool
- Download composer.phar
- Install composer package
- phing
- phpunit
- zend framework 1
- Write phing task phpunit
- Create tests/application/controller/ProfileListPageTest.php
- When visit list profile page then
- expected response code equals 200
- expected request handler by
- index action
- profile controller
- default module
- expected response content
- contain title 'Profile list'
- contain 'empty profile list'
expected test failed
- Create ProductController
- Create index action
- add head title
- add 'Empty list profile' to index.phtml
expected test success
add html layout
expected test success
- Profile id
- Profile fullname
- Profile age
- Profile email
- i want to see all profile list
- table head bold
- Create tests/application/controller/ProfileListPageIntergrateDbTest.php
- When visit list profile page then
- expected response content
- contain table with thead tag
- contain thead > th with 'id'
- contain thead > th with 'fullname'
- contain thead > th with 'age'
- contain thead > th with 'email'
expected test failed
- Find and add phinx to composer.json (require-dev)
- Create scripts/build/sql/create-database.sql
- Create script CreateProfileTable in scripts/build/migrations by phinx
- Add Application_Model_DbTable_Profile
- Fill code to index action
- Fill code to index.phtml
expected test success
- in profile/index.phtml switch case to display message 'profile list empty' or display table profile.
- Expected response code 200
- Expected request handler by create action, profile controller, default module
- Expected response content contains:
- Hidden field name=id with value blank
- Text field name=fullname with value blank
- Text field name=age with value blank
- Text field name=email with value blank
expected test failed
- add method createAction to ProfileController
- create file view/scripts/profile/create.phtml
- make html form in file view/scripts/profile/create.phtml
expected test success
expected test success
When user submit invalid profile Then re populate profile form And show error message
Profile form validation requirement
- dob contains date time (yyyy-MM-dd)
- email contains valid email only
- full-name contain alpha characters only
When user submit valid profile Then system persist profile And system redirect to list profile page
- Setup post request, inject invalid data
- Expected response content contains error area
- Expected response content contains Profile Form full fill
Stop write step by step here :D ()