Example #1
0
 /**
  * Configures the post type loader
  */
 protected function configureCustomPostType()
 {
     $loader = new CustomPostTypeLoader();
     $loader->configure((array) $this->getConfig('custom-post-types'));
     $loader->load();
 }
 /**
  * @expectedException        Exception
  */
 public function testAddInvalidCustomPostType()
 {
     $loader = new CustomPostTypeLoader();
     $loader->configure(array("I_Dont_Exist"));
     $loader->load();
 }