| 1 | #!/usr/bin/perl |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | use strict; |
|---|
| 5 | use warnings; |
|---|
| 6 | |
|---|
| 7 | use lib 'lib', 'extlib'; |
|---|
| 8 | use Test::More tests => 134; |
|---|
| 9 | |
|---|
| 10 | use_ok('MT::Bootstrap'); |
|---|
| 11 | use_ok('MT::ErrorHandler'); |
|---|
| 12 | use_ok('MT'); |
|---|
| 13 | |
|---|
| 14 | # Base App class |
|---|
| 15 | use_ok('MT::App'); |
|---|
| 16 | |
|---|
| 17 | # All CMS modules |
|---|
| 18 | use_ok('MT::App::CMS'); |
|---|
| 19 | use_ok('MT::CMS::AddressBook'); |
|---|
| 20 | use_ok('MT::CMS::Dashboard'); |
|---|
| 21 | use_ok('MT::CMS::Plugin'); |
|---|
| 22 | use_ok('MT::CMS::Asset'); |
|---|
| 23 | use_ok('MT::CMS::Entry'); |
|---|
| 24 | use_ok('MT::CMS::Search'); |
|---|
| 25 | use_ok('MT::CMS::BanList'); |
|---|
| 26 | use_ok('MT::CMS::Export'); |
|---|
| 27 | use_ok('MT::CMS::Tag'); |
|---|
| 28 | use_ok('MT::CMS::Blog'); |
|---|
| 29 | use_ok('MT::CMS::Folder'); |
|---|
| 30 | use_ok('MT::CMS::Template'); |
|---|
| 31 | use_ok('MT::CMS::Category'); |
|---|
| 32 | use_ok('MT::CMS::Import'); |
|---|
| 33 | use_ok('MT::CMS::Tools'); |
|---|
| 34 | use_ok('MT::CMS::Comment'); |
|---|
| 35 | use_ok('MT::CMS::Log'); |
|---|
| 36 | use_ok('MT::CMS::TrackBack'); |
|---|
| 37 | use_ok('MT::CMS::Common'); |
|---|
| 38 | use_ok('MT::CMS::Page'); |
|---|
| 39 | use_ok('MT::CMS::User'); |
|---|
| 40 | |
|---|
| 41 | # Supporting applications |
|---|
| 42 | use_ok('MT::App::ActivityFeeds'); |
|---|
| 43 | use_ok('MT::App::Comments'); |
|---|
| 44 | use_ok('MT::App::NotifyList'); |
|---|
| 45 | use_ok('MT::App::Search'); |
|---|
| 46 | use_ok('MT::App::Trackback'); |
|---|
| 47 | use_ok('MT::App::Upgrader'); |
|---|
| 48 | use_ok('MT::App::Viewer'); |
|---|
| 49 | use_ok('MT::App::Wizard'); |
|---|
| 50 | |
|---|
| 51 | # Auth framework |
|---|
| 52 | use_ok('MT::Auth'); |
|---|
| 53 | use_ok('MT::Auth::MT'); |
|---|
| 54 | |
|---|
| 55 | # MT::Objects |
|---|
| 56 | use_ok('MT::Object'); |
|---|
| 57 | use_ok('MT::Author'); |
|---|
| 58 | use_ok('MT::BasicAuthor'); |
|---|
| 59 | use_ok('MT::BasicSession'); |
|---|
| 60 | use_ok('MT::Blog'); |
|---|
| 61 | use_ok('MT::ObjectScore'); |
|---|
| 62 | use_ok('MT::ObjectTag'); |
|---|
| 63 | use_ok('MT::Permission'); |
|---|
| 64 | use_ok('MT::Role'); |
|---|
| 65 | use_ok('MT::Association'); |
|---|
| 66 | use_ok('MT::Placement'); |
|---|
| 67 | use_ok('MT::Category'); |
|---|
| 68 | use_ok('MT::Comment'); |
|---|
| 69 | use_ok('MT::Entry'); |
|---|
| 70 | use_ok('MT::IPBanList'); |
|---|
| 71 | use_ok('MT::FileInfo'); |
|---|
| 72 | use_ok('MT::Config'); |
|---|
| 73 | use_ok('MT::Asset'); |
|---|
| 74 | use_ok('MT::Asset::Image'); |
|---|
| 75 | use_ok('MT::Asset::Video'); |
|---|
| 76 | use_ok('MT::Asset::Audio'); |
|---|
| 77 | use_ok('MT::ObjectAsset'); |
|---|
| 78 | use_ok('MT::Log'); |
|---|
| 79 | use_ok('MT::Notification'); |
|---|
| 80 | use_ok('MT::PluginData'); |
|---|
| 81 | use_ok('MT::Session'); |
|---|
| 82 | use_ok('MT::Tag'); |
|---|
| 83 | use_ok('MT::Template'); |
|---|
| 84 | use_ok('MT::TemplateMap'); |
|---|
| 85 | use_ok('MT::Trackback'); |
|---|
| 86 | use_ok('MT::TBPing'); |
|---|
| 87 | |
|---|
| 88 | # Utility modules |
|---|
| 89 | use_ok('MT::Builder'); |
|---|
| 90 | use_ok('MT::Callback'); |
|---|
| 91 | use_ok('MT::ConfigMgr'); |
|---|
| 92 | use_ok('MT::DateTime'); |
|---|
| 93 | use_ok('MT::DefaultTemplates'); |
|---|
| 94 | use_ok('MT::FileMgr'); |
|---|
| 95 | use_ok('MT::FileMgr::Local'); |
|---|
| 96 | use_ok('MT::Image'); |
|---|
| 97 | use_ok('MT::ImportExport'); |
|---|
| 98 | use_ok('MT::JunkFilter'); |
|---|
| 99 | use_ok('MT::Mail'); |
|---|
| 100 | use_ok('MT::Promise'); |
|---|
| 101 | use_ok('MT::Request'); |
|---|
| 102 | use_ok('MT::Sanitize'); |
|---|
| 103 | use_ok('MT::Serialize'); |
|---|
| 104 | |
|---|
| 105 | # L10N modules |
|---|
| 106 | use_ok('MT::L10N'); |
|---|
| 107 | use_ok('MT::L10N::de'); |
|---|
| 108 | use_ok('MT::L10N::en_us'); |
|---|
| 109 | use_ok('MT::L10N::es'); |
|---|
| 110 | use_ok('MT::L10N::fr'); |
|---|
| 111 | use_ok('MT::L10N::ja'); |
|---|
| 112 | use_ok('MT::L10N::nl'); |
|---|
| 113 | |
|---|
| 114 | # I18N modules |
|---|
| 115 | use_ok('MT::I18N'); |
|---|
| 116 | use_ok('MT::I18N::default'); |
|---|
| 117 | use_ok('MT::I18N::en_us'); |
|---|
| 118 | use_ok('MT::I18N::ja'); |
|---|
| 119 | |
|---|
| 120 | # Data::ObjectDriver classes |
|---|
| 121 | use_ok('MT::ObjectDriverFactory'); |
|---|
| 122 | use_ok('MT::ObjectDriver::Driver::DBI'); |
|---|
| 123 | use_ok('MT::ObjectDriver::Driver::DBD::Legacy'); |
|---|
| 124 | use_ok('MT::ObjectDriver::Driver::DBD::mysql'); |
|---|
| 125 | use_ok('MT::ObjectDriver::Driver::DBD::Pg'); |
|---|
| 126 | use_ok('MT::ObjectDriver::Driver::DBD::SQLite'); |
|---|
| 127 | |
|---|
| 128 | # Plugin API |
|---|
| 129 | use_ok('MT::Plugin'); |
|---|
| 130 | use_ok('MT::Plugin::JunkFilter'); |
|---|
| 131 | use_ok('MT::Plugin::L10N'); |
|---|
| 132 | use_ok('MT::Task'); |
|---|
| 133 | use_ok('MT::TaskMgr'); |
|---|
| 134 | use_ok('MT::Template::Context'); |
|---|
| 135 | use_ok('MT::Template::ContextHandlers'); |
|---|
| 136 | use_ok('MT::Upgrade'); |
|---|
| 137 | use_ok('MT::Util'); |
|---|
| 138 | use_ok('MT::WeblogPublisher'); |
|---|
| 139 | |
|---|
| 140 | # Archive code |
|---|
| 141 | use_ok('MT::ArchiveType'); |
|---|
| 142 | use_ok('MT::ArchiveType::Author'); |
|---|
| 143 | use_ok('MT::ArchiveType::AuthorDaily'); |
|---|
| 144 | use_ok('MT::ArchiveType::AuthorMonthly'); |
|---|
| 145 | use_ok('MT::ArchiveType::AuthorWeekly'); |
|---|
| 146 | use_ok('MT::ArchiveType::AuthorYearly'); |
|---|
| 147 | use_ok('MT::ArchiveType::Category'); |
|---|
| 148 | use_ok('MT::ArchiveType::CategoryDaily'); |
|---|
| 149 | use_ok('MT::ArchiveType::CategoryMonthly'); |
|---|
| 150 | use_ok('MT::ArchiveType::CategoryWeekly'); |
|---|
| 151 | use_ok('MT::ArchiveType::CategoryYearly'); |
|---|
| 152 | use_ok('MT::ArchiveType::Daily'); |
|---|
| 153 | use_ok('MT::ArchiveType::Date'); |
|---|
| 154 | use_ok('MT::ArchiveType::Individual'); |
|---|
| 155 | use_ok('MT::ArchiveType::Monthly'); |
|---|
| 156 | use_ok('MT::ArchiveType::Page'); |
|---|
| 157 | use_ok('MT::ArchiveType::Weekly'); |
|---|
| 158 | use_ok('MT::ArchiveType::Yearly'); |
|---|
| 159 | |
|---|
| 160 | # XMLRPC support |
|---|
| 161 | use_ok('MT::XMLRPC'); |
|---|
| 162 | use_ok('MT::XMLRPCServer'); |
|---|
| 163 | |
|---|
| 164 | # Atom support |
|---|
| 165 | use_ok('MT::Atom'); |
|---|
| 166 | use_ok('MT::AtomServer'); |
|---|
| 167 | |
|---|
| 168 | # Backup/Restore |
|---|
| 169 | use_ok('MT::BackupRestore'); |
|---|
| 170 | use_ok('MT::BackupRestore::BackupFileHandler'); |
|---|
| 171 | use_ok('MT::BackupRestore::ManifestFileHandler'); |
|---|