{"id":2413,"date":"2018-03-12T02:57:07","date_gmt":"2018-03-12T02:57:07","guid":{"rendered":"https:\/\/2018.sandiego.wordcamp.org\/?post_type=wcb_session&#038;p=2413"},"modified":"2018-04-20T19:01:25","modified_gmt":"2018-04-21T02:01:25","slug":"introduction-to-unit-testing-wordpress-plugins","status":"publish","type":"wcb_session","link":"https:\/\/sandiego.wordcamp.org\/2018\/session\/introduction-to-unit-testing-wordpress-plugins\/","title":{"rendered":"Introduction to Unit Testing WordPress Plugins"},"content":{"rendered":"<p>This presentation is an introduction to how to unit test WordPress plugins. PHPUnit is the standard PHP testing framework, but getting it working with a WordPress plugin is challenging. The presentation covers: &#8211; Advantages that unit tests provide &#8211; Scaffolding a new plugin and its unit tests using WP-CLI &#8211; Writing and running the first unit test.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This presentation is an introduction to how to unit test WordPress plugins. PHPUnit is the standard PHP testing framework, but getting it working with a WordPress plugin is challenging. The presentation covers: &#8211; Advantages that unit tests provide &#8211; Scaffolding a new plugin and its unit tests using WP-CLI &#8211; Writing and running the first &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sandiego.wordcamp.org\/2018\/session\/introduction-to-unit-testing-wordpress-plugins\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Introduction to Unit Testing WordPress Plugins&#8221;<\/span><\/a><\/p>\n","protected":false},"author":4592805,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1523822400,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"https:\/\/www.slideshare.net\/behzod\/introduction-to-unit-testing-wordpress-plugins","_wcpt_session_video":"","_wcpt_speaker_id":[2248],"footnotes":""},"session_track":[1234439],"session_category":[],"class_list":["post-2413","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-marines"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p95pob-CV","session_date_time":{"date":"April 15, 2018","time":"1:00 pm"},"session_speakers":[{"id":"2248","slug":"behzod-saidov","name":"Behzod Saidov","link":"https:\/\/sandiego.wordcamp.org\/2018\/speaker\/behzod-saidov\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/sessions\/2413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/users\/4592805"}],"version-history":[{"count":1,"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/sessions\/2413\/revisions"}],"predecessor-version":[{"id":2414,"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/sessions\/2413\/revisions\/2414"}],"speakers":[{"embeddable":true,"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/speakers\/2248"}],"wp:attachment":[{"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/media?parent=2413"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/session_track?post=2413"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/sandiego.wordcamp.org\/2018\/wp-json\/wp\/v2\/session_category?post=2413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}