{"id":417,"date":"2017-05-18T10:16:51","date_gmt":"2017-05-18T04:31:51","guid":{"rendered":"https:\/\/2017.kathmandu.wordcamp.org\/?post_type=wcb_session&#038;p=417"},"modified":"2017-05-18T10:16:51","modified_gmt":"2017-05-18T04:31:51","slug":"unit-testing-for-wordpress","status":"publish","type":"wcb_session","link":"https:\/\/kathmandu.wordcamp.org\/2017\/session\/unit-testing-for-wordpress\/","title":{"rendered":"Unit Testing for WordPress"},"content":{"rendered":"<p>No one writes a Perfect code, We all create bugs while writing the code. If anyone disagree with it, I\u2019ll gladly hear why? PHPUnit testing in WordPress can definitely help one to fix the issues.<\/p>\n<p>In my talk, I&#8217;ll cover following:<br \/>\n1. What is PHPUnit testing.<br \/>\n2. Why unit testing is important?<br \/>\n3. Difference between Unit and Acceptance test.<br \/>\n4. Introduction to PHPUnit,<br \/>\n5. How to setup PHPUnit using WP-CLI.<br \/>\n6. Assertion Methods.<br \/>\n7. How to write test cases.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No one writes a Perfect code, We all create bugs while writing the code. If anyone disagree with it, I\u2019ll gladly hear why? PHPUnit testing in WordPress can definitely help one to fix the issues. In my talk, I&#8217;ll cover following: 1. What is PHPUnit testing. 2. Why unit testing is important? 3. Difference between &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/kathmandu.wordcamp.org\/2017\/session\/unit-testing-for-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Unit Testing for WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":10274337,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1495271700,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[416],"footnotes":""},"session_track":[1002995],"session_category":[],"class_list":["post-417","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-action"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8jf86-6J","session_date_time":{"date":"May 20, 2017","time":"3:00 PM"},"session_speakers":[{"id":"416","slug":"harshad-mane","name":"Harshad Mane","link":"https:\/\/kathmandu.wordcamp.org\/2017\/speaker\/harshad-mane\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions\/417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions\/417\/revisions"}],"predecessor-version":[{"id":2080,"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions\/417\/revisions\/2080"}],"speakers":[{"embeddable":true,"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/speakers\/416"}],"author":[{"embeddable":true,"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wporg\/v1\/users\/bornforphp"}],"wp:attachment":[{"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/session_track?post=417"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/kathmandu.wordcamp.org\/2017\/wp-json\/wp\/v2\/session_category?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}