| [ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 265 lignes (7 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 6 fois |
| Nécessite: | 0 fichiers |
TestTools:: (8 méthodes):
createBlog()
createUser()
createAdminUser()
createArticle()
createArticleCategory()
createBlogScenario()
deleteDaoTestData()
getRandomWord()
| createBlog( $ownerId ) X-Ref |
| Creates a temporary blog param: ownerId Id of the owner return: A BlogInfo object if successful or false otherwise |
| createUser() X-Ref |
| Creates a temporary user return: A UserInfo object if successful or false otherwise |
| createAdminUser() X-Ref |
| Creates a temporary admin user return: A UserInfo object if successful or false otherwise |
| createArticle( $blogId, $userId, $categoryIds, $status = POST_STATUS_PUBLISHED, $date = null ) X-Ref |
| Create a temporary article param: blogId Id of the blog to which this article belongs param: categories An array with category ids param: status A valid status for the article, POST_STATUS_PUBLISHED if none specified param: date A Timestamp, the current date will be used if none specified return: An Article object if successful or false otherwise |
| createArticleCategory( $blogId ) X-Ref |
| Create a temporary article category param: blogId return: An ArticleCategory object or false otherwise |
| createBlogScenario( $params = Array() X-Ref |
| Creates a clean scenario for tests, including one blog, one user, one or more different articles and one or more different article categories param: params An array return: Returns an array with several different fields containing the user (owner), blog, categories |
| deleteDaoTestData( $data ) X-Ref |
| Deletes any test data created param: data An array with DAO objects |
| getRandomWord($lenght, $uppercase = false, $html = true) X-Ref |
| Generate random words |
| Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
|