{"id":1338,"date":"2015-04-26T14:05:58","date_gmt":"2015-04-26T21:05:58","guid":{"rendered":"https:\/\/2015.oc.wordcamp.org\/?post_type=wcb_session&#038;p=1338"},"modified":"2015-04-26T17:26:10","modified_gmt":"2015-04-27T00:26:10","slug":"a-tale-of-two-test-suites","status":"publish","type":"wcb_session","link":"https:\/\/oc.wordcamp.org\/2015\/session\/a-tale-of-two-test-suites\/","title":{"rendered":"A Tale of Two Test Suites"},"content":{"rendered":"<p>WordPress powers over 20% of the Internet and comes with a fully-fleshed out unit testing framework covering the core library. For testing plugins and themes (extensions to WordPress), I developed WP_Mock, a comprehensive mocking framework for WordPress. WP_Mock allows developers to test their code in complete isolation from WordPress itself.<\/p>\n<p>I\u2019ll walk attendees through both test frameworks, covering the pros\/cons of each and examples of their use. Attendees will gain a further understanding of PHPUnit, unit testing in general, process isolation, and code modularization.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress powers over 20% of the Internet and comes with a fully-fleshed out unit testing framework covering the core library. For testing plugins and themes (extensions to WordPress), I developed WP_Mock, a comprehensive mocking framework for WordPress. WP_Mock allows developers to test their code in complete isolation from WordPress itself. I\u2019ll walk attendees through both &hellip; <a href=\"https:\/\/oc.wordcamp.org\/2015\/session\/a-tale-of-two-test-suites\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A Tale of Two Test Suites<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":295019,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1433696400,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[1179],"footnotes":""},"session_track":[497497],"session_category":[],"class_list":["post-1338","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-salt-creek-trail"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5oCTL-lA","session_date_time":{"date":"June 7, 2015","time":"10:00 am"},"session_speakers":[{"id":"1179","slug":"eric-mann","name":"Eric Mann","link":"https:\/\/oc.wordcamp.org\/2015\/speaker\/eric-mann\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/1338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/1338\/revisions"}],"predecessor-version":[{"id":1339,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/1338\/revisions\/1339"}],"speakers":[{"embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/speakers\/1179"}],"author":[{"embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wporg\/v1\/users\/ericmann"}],"wp:attachment":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/media?parent=1338"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/session_track?post=1338"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/session_category?post=1338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}