Increase of web application development has affected usage of advanced development methodologies. In front of development are agile methods, which invoke testing inside software programs. Test driven development practise of website development covers writting tests before implementating functionalities of web page. In the thesis are descibed different types of tests, which are shown in practical use. Components are tested dependently on which component is currently tested. Presented tests are view, model and controller tests divided into individual units that they can be tested accurately and efficiently.