Permalink
Browse files

Make all main Babble objects explicitly global, so we can run unit tests

  • Loading branch information...
1 parent 75a72c4 commit ff5e4ad2341af5ff6cfb0c022437b603931179e4 Simon Wheatley committed Mar 13, 2012
Showing with 8 additions and 0 deletions.
  1. +1 −0 class-admin-bar.php
  2. +1 −0 class-babble-log.php
  3. +1 −0 class-comment.php
  4. +1 −0 class-languages.php
  5. +1 −0 class-locale.php
  6. +1 −0 class-post-public.php
  7. +1 −0 class-switcher-menu.php
  8. +1 −0 class-taxonomy.php
View
1 class-admin-bar.php
@@ -44,6 +44,7 @@ public function admin_bar_menu( $wp_admin_bar ) {
}
+global $bbl_admin_bar;
$bbl_admin_bar = new Babble_Admin_bar();
?>
View
1 class-babble-log.php
@@ -44,6 +44,7 @@ public function log( $msg ) {
}
+global $bbl_log;
$bbl_log = new Babble_Log();
?>
View
1 class-comment.php
@@ -84,6 +84,7 @@ public function get_comments_number( $count, $post_id ) {
}
+global $bbl_comment;
$bbl_comment = new Babble_Comment();
?>
View
1 class-languages.php
@@ -509,6 +509,7 @@ protected function set_defaults() {
}
}
+global $bbl_languages;
$bbl_languages = new Babble_Languages();
?>
View
1 class-locale.php
@@ -471,6 +471,7 @@ protected function maybe_update() {
}
+global $bbl_locale;
$bbl_locale = new Babble_Locale();
?>
View
1 class-post-public.php
@@ -1768,6 +1768,7 @@ protected function maybe_upgrade() {
}
+global $bbl_post_public;
$bbl_post_public = new Babble_Post_Public();
?>
View
1 class-switcher-menu.php
@@ -521,6 +521,7 @@ protected function add_arbitrary_link( $lang ) {
}
+global $bbl_switcher_menu;
$bbl_switcher_menu = new Babble_Switcher_Menu();
?>
View
1 class-taxonomy.php
@@ -879,6 +879,7 @@ protected function maybe_resync_terms( $post_id, $post ) {
}
+global $bbl_taxonomies;
$bbl_taxonomies = new Babble_Taxonomies();
?>

0 comments on commit ff5e4ad

Please sign in to comment.