예제 #1
0
 function testConstants()
 {
     $toTest = array('org_tubepress_api_const_http_ParamName' => array('tubepress_debug', 'tubepress_page', 'tubepress_search', 'tubepress_shortcode', 'tubepress_video'), 'org_tubepress_api_const_options_names_Advanced' => array('debugging_enabled', 'disableHttpTransportCurl', 'disableHttpTransportExtHttp', 'disableHttpTransportFopen', 'disableHttpTransportFsockOpen', 'disableHttpTransportStreams', 'keyword', 'galleryId', 'https'), 'org_tubepress_api_const_options_names_Cache' => array('cacheEnabled', 'cacheCleaningFactor', 'cacheDirectory', 'cacheLifetimeSeconds'), 'org_tubepress_api_const_options_names_Embedded' => array('playerImplementation', 'embeddedHeight', 'embeddedWidth', 'lazyPlay', 'autoplay', 'fullscreen', 'hd', 'loop', 'playerColor', 'playerHighlight', 'showInfo', 'showRelated', 'playerLocation', 'autoNext', 'sequence', 'enableJsApi', 'autoHide', 'modestBranding'), 'org_tubepress_api_const_options_names_Feed' => array('orderBy', 'videoBlacklist', 'developerKey', 'embeddableOnly', 'filter_racy', 'resultCountCap', 'searchResultsRestrictedToUser', 'vimeoKey', 'vimeoSecret', 'perPageSort'), 'org_tubepress_api_const_options_names_GallerySource' => array('favoritesValue', 'most_viewedValue', 'playlistValue', 'tagValue', 'youtubeTopFavoritesValue', 'top_ratedValue', 'userValue', 'vimeoAlbumValue', 'vimeoAppearsInValue', 'vimeoChannelValue', 'vimeoCreditedToValue', 'vimeoGroupValue', 'vimeoLikesValue', 'vimeoSearchValue', 'vimeoUploadedByValue', 'most_discussedValue', 'most_recentValue', 'most_respondedValue', 'recently_featured'), 'org_tubepress_api_const_options_names_InteractiveSearch' => array('searchProvider', 'searchResultsDomId', 'searchResultsOnly', 'searchResultsUrl'), 'org_tubepress_api_const_options_names_Meta' => array('author', 'category', 'description', 'id', 'length', 'likes', 'rating', 'ratings', 'tags', 'title', 'uploaded', 'url', 'views', 'dateFormat', 'descriptionLimit', 'relativeDates'), 'org_tubepress_api_const_options_names_Output' => array('mode', 'output', 'video'), 'org_tubepress_api_const_options_names_Thumbs' => array('theme', 'ajaxPagination', 'resultsPerPage', 'hqThumbs', 'thumbHeight', 'thumbWidth', 'fluidThumbs', 'paginationAbove', 'paginationBelow', 'randomize_thumbnails'), 'org_tubepress_api_const_options_names_WordPress' => array('widget-tagstring', 'widget-title', 'showVimeoOptions', 'showYouTubeOptions'), 'org_tubepress_api_const_options_values_GallerySourceValue' => array('favorites', 'most_discussed', 'most_recent', 'most_responded', 'most_viewed', 'playlist', 'recently_featured', 'tag', 'top_rated', 'user', 'vimeoAlbum', 'vimeoAppearsIn', 'vimeoChannel', 'vimeoCreditedTo', 'vimeoGroup', 'vimeoLikes', 'vimeoSearch', 'vimeoUploadedBy', 'youtubeTopFavorites'), 'org_tubepress_api_const_options_values_OrderByValue' => array('commentCount', 'duration', 'newest', 'oldest', 'position', 'random', 'rating', 'relevance', 'title', 'viewCount'), 'org_tubepress_api_const_options_values_OutputValue' => array('ajaxSearchInput', 'searchInput', 'searchResults', 'player'), 'org_tubepress_api_const_options_values_PerPageSortValue' => array('commentCount', 'duration', 'newest', 'oldest', 'random', 'rating', 'none', 'title', 'viewCount'), 'org_tubepress_api_const_options_values_PlayerImplementationValue' => array('embedplus', 'longtail', 'provider_based'), 'org_tubepress_api_const_options_values_PlayerLocationValue' => array('fancybox', 'jqmodal', 'normal', 'popup', 'shadowbox', 'solo', 'static', 'tinybox', 'vimeo', 'youtube', 'detached'), 'org_tubepress_api_const_options_values_SafeSearchValue' => array('moderate', 'none', 'strict'), 'org_tubepress_api_const_options_values_TimeFrameValue' => array('all_time', 'this_month', 'this_week', 'today'), 'org_tubepress_api_const_plugin_EventName' => array('boot'), 'org_tubepress_api_const_plugin_FilterPoint' => array('embeddedHtml', 'embeddedTemplate', 'galleryHtml', 'galleryTemplate', 'html', 'galleryInitJavaScript', 'paginationHtml', 'playerHtml', 'playerTemplate', 'providerResult', 'searchInputHtml', 'searchInputTemplate', 'singleVideoHtml', 'singleVideoTemplate', 'video', 'preValidationOptionSet', 'variableReadFromExternalInput'), 'org_tubepress_api_const_template_Variable' => array('autostart', 'bottomPagination', 'embeddedColorHightlight', 'embeddedColorPrimary', 'embeddedFullscreen', 'embeddedHeight', 'embeddedImplementationName', 'embeddedSource', 'embeddedWidth', 'galleryId', 'homeURL', 'metaLabels', 'playerName', 'preGallery', 'searchButton', 'searchHandlerUrl', 'searchHiddenInputs', 'searchTargetDomId', 'searchTerms', 'shouldShow', 'thumbHeight', 'thumbWidth', 'topPagination', 'tubepressBaseUrl', 'video', 'videoArray', 'videoId', 'shortcode'));
     foreach ($toTest as $className => $expected) {
         TubePressUnitTest::assertClassHasConstants($className, $expected);
     }
 }