UserManagerTest.lib.php 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251
  1. <?php
  2. /**
  3. * Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:32:19.
  4. */
  5. class UserManagerTest extends PHPUnit_Framework_TestCase
  6. {
  7. /**
  8. * @var UserManager
  9. */
  10. protected $object;
  11. /**
  12. * Sets up the fixture, for example, opens a network connection.
  13. * This method is called before a test is executed.
  14. */
  15. protected function setUp()
  16. {
  17. require_once dirname(__FILE__).'/../../../main/inc/global.inc.php';
  18. $this->object = new UserManager;
  19. }
  20. /**
  21. * Tears down the fixture, for example, closes a network connection.
  22. * This method is called after a test is executed.
  23. */
  24. protected function tearDown()
  25. {
  26. }
  27. function customUser() {
  28. $unique_id = uniqid();
  29. return array(
  30. array('julio', 'montoya', 5, 'julio@example.com', 'jmontoya1_'.$unique_id, 'jmontoya1_'.$unique_id),
  31. array('julio', 'montoya', 5, 'julio@example.com', 'jmontoya2_'.$unique_id, 'jmontoya2_'.$unique_id)
  32. );
  33. }
  34. /**
  35. *
  36. * @covers UserManager::is_username_available
  37. */
  38. public function testIs_username_available()
  39. {
  40. $this->assertSame(
  41. false, UserManager::is_username_available('')
  42. );
  43. $unique_id = uniqid();
  44. $this->assertSame(
  45. true, UserManager::is_username_available($unique_id)
  46. );
  47. }
  48. /**
  49. * @depends testIs_username_available
  50. */
  51. public function testIs_username_available2()
  52. {
  53. $this->assertSame(
  54. true, UserManager::is_username_available('jmontoya666')
  55. );
  56. }
  57. /**
  58. *
  59. * @covers UserManager::create_user
  60. * @depends testIs_username_available2
  61. */
  62. public function testCreate_user()
  63. {
  64. $user_id = UserManager::create_user('julio', 'montoya', 5, 'julio@example.com', 'jmontoya666', 'jmontoya666');
  65. $this->assertGreaterThan(
  66. 1, $user_id
  67. );
  68. return $user_id;
  69. }
  70. /**
  71. * @covers UserManager::get_user_info_by_id
  72. * @depends testCreate_user
  73. */
  74. public function testGet_user_info_by_id($user_id)
  75. {
  76. $user_info = UserManager::get_user_info_by_id($user_id);
  77. $this->assertGreaterThan(
  78. 1, $user_info['user_id']
  79. );
  80. return $user_info;
  81. }
  82. /**
  83. * @dataProvider customUser
  84. * @covers UserManager::create_user
  85. */
  86. public function testCreate_user2($firstname, $lastname, $status, $email, $username, $password)
  87. {
  88. $this->assertGreaterThan(
  89. 1, UserManager::create_user($firstname, $lastname, $status, $email, $username, $password)
  90. );
  91. }
  92. /**
  93. * @covers UserManager::get_user_info
  94. * @depends testGet_user_info_by_id
  95. */
  96. public function testGet_user_info($user_info)
  97. {
  98. $user_info = UserManager::get_user_info($user_info['username']);
  99. $this->assertGreaterThan(
  100. 1, $user_info['user_id']
  101. );
  102. }
  103. /**
  104. * @covers UserManager::delete_user
  105. */
  106. public function testDelete_user()
  107. {
  108. $this->assertSame(
  109. false, UserManager::delete_user(null)
  110. );
  111. $this->assertSame(
  112. false, UserManager::delete_user('abc')
  113. );
  114. $this->assertSame(
  115. false, UserManager::delete_users(-1)
  116. );
  117. $this->assertSame(
  118. false, UserManager::delete_users(array(-1))
  119. );
  120. $this->assertSame(
  121. false, UserManager::delete_users(null)
  122. );
  123. }
  124. /**
  125. * @depends testCreate_user
  126. */
  127. public function testDelete_user2()
  128. {
  129. $user_info = UserManager::get_user_info('jmontoya666');
  130. $this->assertSame(
  131. false, UserManager::delete_user($user_info['user_id'])
  132. );
  133. }
  134. /**
  135. * Generated from @assert (-1) === false.
  136. *
  137. * @covers UserManager::can_delete_user
  138. */
  139. public function testCan_delete_user2()
  140. {
  141. $this->assertSame(
  142. false, UserManager::can_delete_user(-1)
  143. );
  144. }
  145. /**
  146. * Generated from @assert ('abc') === false.
  147. *
  148. * @covers UserManager::can_delete_user
  149. */
  150. public function testCan_delete_user3()
  151. {
  152. $this->assertSame(
  153. false, UserManager::can_delete_user('abc')
  154. );
  155. }
  156. /**
  157. * Generated from @assert (null) === false.
  158. *
  159. * @covers UserManager::deactivate_users
  160. */
  161. public function testDeactivate_users()
  162. {
  163. $this->assertSame(
  164. false, UserManager::deactivate_users(null)
  165. );
  166. }
  167. /**
  168. * Generated from @assert (array(-1)) === false.
  169. *
  170. * @covers UserManager::deactivate_users
  171. */
  172. public function testDeactivate_users2()
  173. {
  174. $this->assertSame(
  175. false, UserManager::deactivate_users(array(-1))
  176. );
  177. }
  178. /**
  179. * Generated from @assert (null) === false.
  180. *
  181. * @covers UserManager::activate_users
  182. */
  183. public function testActivate_users()
  184. {
  185. $this->assertSame(
  186. false, UserManager::activate_users(null)
  187. );
  188. }
  189. /**
  190. * Generated from @assert (array(-1)) === false.
  191. *
  192. * @covers UserManager::activate_users
  193. */
  194. public function testActivate_users2()
  195. {
  196. $this->assertSame(
  197. false, UserManager::activate_users(array(-1))
  198. );
  199. }
  200. /**
  201. * Generated from @assert (false,'') === false.
  202. *
  203. * @covers UserManager::update_openid
  204. */
  205. public function testUpdate_openid()
  206. {
  207. $this->assertSame(
  208. false, UserManager::update_openid(false, '')
  209. );
  210. }
  211. /**
  212. * Generated from @assert (-1,'') === false.
  213. *
  214. * @covers UserManager::update_openid
  215. */
  216. public function testUpdate_openid2()
  217. {
  218. $this->assertSame(
  219. false, UserManager::update_openid(-1, '')
  220. );
  221. }
  222. /**
  223. *
  224. * @covers UserManager::update_user
  225. */
  226. public function testUpdate_user()
  227. {
  228. $this->assertSame(
  229. false, UserManager::update_user(false, false, false, false)
  230. );
  231. }
  232. /**
  233. * Generated from @assert (0) === false.
  234. *
  235. * @covers UserManager::disable
  236. */
  237. public function testDisable()
  238. {
  239. $this->assertSame(
  240. false, UserManager::disable(0)
  241. );
  242. }
  243. /**
  244. * Generated from @assert (0) === false.
  245. *
  246. * @covers UserManager::enable
  247. */
  248. public function testEnable()
  249. {
  250. $this->assertSame(
  251. false, UserManager::enable(0)
  252. );
  253. }
  254. /**
  255. * Generated from @assert ('0','---') === 0.
  256. *
  257. * @covers UserManager::get_user_id_from_original_id
  258. */
  259. public function testGet_user_id_from_original_id()
  260. {
  261. $this->assertSame(
  262. 0, UserManager::get_user_id_from_original_id('0', '---')
  263. );
  264. }
  265. /**
  266. * Generated from @assert ('','') === false.
  267. *
  268. * @covers UserManager::create_username
  269. */
  270. public function testCreate_username()
  271. {
  272. $this->assertSame(
  273. 'user', UserManager::create_username('', '')
  274. );
  275. }
  276. /**
  277. * Generated from @assert ('a','b') === 'ab'.
  278. *
  279. * @covers UserManager::create_username
  280. */
  281. public function testCreate_username2()
  282. {
  283. $this->assertSame(
  284. 'ab', UserManager::create_username('a', 'b')
  285. );
  286. }
  287. /**
  288. * @covers UserManager::create_unique_username
  289. * @todo Implement testCreate_unique_username().
  290. */
  291. public function testCreate_unique_username()
  292. {
  293. // Remove the following lines when you implement this test.
  294. $this->markTestIncomplete(
  295. 'This test has not been implemented yet.'
  296. );
  297. }
  298. /**
  299. * @covers UserManager::purify_username
  300. * @todo Implement testPurify_username().
  301. */
  302. public function testPurify_username()
  303. {
  304. // Remove the following lines when you implement this test.
  305. $this->markTestIncomplete(
  306. 'This test has not been implemented yet.'
  307. );
  308. }
  309. /**
  310. * @covers UserManager::is_user_id_valid
  311. * @todo Implement testIs_user_id_valid().
  312. */
  313. public function testIs_user_id_valid()
  314. {
  315. // Remove the following lines when you implement this test.
  316. $this->markTestIncomplete(
  317. 'This test has not been implemented yet.'
  318. );
  319. }
  320. /**
  321. * @covers UserManager::is_username_valid
  322. * @todo Implement testIs_username_valid().
  323. */
  324. public function testIs_username_valid()
  325. {
  326. // Remove the following lines when you implement this test.
  327. $this->markTestIncomplete(
  328. 'This test has not been implemented yet.'
  329. );
  330. }
  331. /**
  332. * @covers UserManager::is_username_empty
  333. * @todo Implement testIs_username_empty().
  334. */
  335. public function testIs_username_empty()
  336. {
  337. // Remove the following lines when you implement this test.
  338. $this->markTestIncomplete(
  339. 'This test has not been implemented yet.'
  340. );
  341. }
  342. /**
  343. * @covers UserManager::is_username_too_long
  344. * @todo Implement testIs_username_too_long().
  345. */
  346. public function testIs_username_too_long()
  347. {
  348. // Remove the following lines when you implement this test.
  349. $this->markTestIncomplete(
  350. 'This test has not been implemented yet.'
  351. );
  352. }
  353. /**
  354. * @covers UserManager::get_user_list_by_ids
  355. * @todo Implement testGet_user_list_by_ids().
  356. */
  357. public function testGet_user_list_by_ids()
  358. {
  359. // Remove the following lines when you implement this test.
  360. $this->markTestIncomplete(
  361. 'This test has not been implemented yet.'
  362. );
  363. }
  364. /**
  365. * @covers UserManager::get_user_list
  366. * @todo Implement testGet_user_list().
  367. */
  368. public function testGet_user_list()
  369. {
  370. // Remove the following lines when you implement this test.
  371. $this->markTestIncomplete(
  372. 'This test has not been implemented yet.'
  373. );
  374. }
  375. /**
  376. * @covers UserManager::get_user_list_like
  377. * @todo Implement testGet_user_list_like().
  378. */
  379. public function testGet_user_list_like()
  380. {
  381. // Remove the following lines when you implement this test.
  382. $this->markTestIncomplete(
  383. 'This test has not been implemented yet.'
  384. );
  385. }
  386. /**
  387. * @covers UserManager::get_teacher_list
  388. * @todo Implement testGet_teacher_list().
  389. */
  390. public function testGet_teacher_list()
  391. {
  392. // Remove the following lines when you implement this test.
  393. $this->markTestIncomplete(
  394. 'This test has not been implemented yet.'
  395. );
  396. }
  397. /**
  398. * @covers UserManager::get_user_picture_path_by_id
  399. * @todo Implement testGet_user_picture_path_by_id().
  400. */
  401. public function testGet_user_picture_path_by_id()
  402. {
  403. // Remove the following lines when you implement this test.
  404. $this->markTestIncomplete(
  405. 'This test has not been implemented yet.'
  406. );
  407. }
  408. /**
  409. * @covers UserManager::update_user_picture
  410. * @todo Implement testUpdate_user_picture().
  411. */
  412. public function testUpdate_user_picture()
  413. {
  414. // Remove the following lines when you implement this test.
  415. $this->markTestIncomplete(
  416. 'This test has not been implemented yet.'
  417. );
  418. }
  419. /**
  420. * @covers UserManager::delete_user_picture
  421. * @todo Implement testDelete_user_picture().
  422. */
  423. public function testDelete_user_picture()
  424. {
  425. // Remove the following lines when you implement this test.
  426. $this->markTestIncomplete(
  427. 'This test has not been implemented yet.'
  428. );
  429. }
  430. /**
  431. * @covers UserManager::build_production_list
  432. * @todo Implement testBuild_production_list().
  433. */
  434. public function testBuild_production_list()
  435. {
  436. // Remove the following lines when you implement this test.
  437. $this->markTestIncomplete(
  438. 'This test has not been implemented yet.'
  439. );
  440. }
  441. /**
  442. * @covers UserManager::get_user_productions
  443. * @todo Implement testGet_user_productions().
  444. */
  445. public function testGet_user_productions()
  446. {
  447. // Remove the following lines when you implement this test.
  448. $this->markTestIncomplete(
  449. 'This test has not been implemented yet.'
  450. );
  451. }
  452. /**
  453. * @covers UserManager::remove_user_production
  454. * @todo Implement testRemove_user_production().
  455. */
  456. public function testRemove_user_production()
  457. {
  458. // Remove the following lines when you implement this test.
  459. $this->markTestIncomplete(
  460. 'This test has not been implemented yet.'
  461. );
  462. }
  463. /**
  464. * @covers UserManager::update_extra_field
  465. * @todo Implement testUpdate_extra_field().
  466. */
  467. public function testUpdate_extra_field()
  468. {
  469. // Remove the following lines when you implement this test.
  470. $this->markTestIncomplete(
  471. 'This test has not been implemented yet.'
  472. );
  473. }
  474. /**
  475. * @covers UserManager::update_extra_field_value
  476. * @todo Implement testUpdate_extra_field_value().
  477. */
  478. public function testUpdate_extra_field_value()
  479. {
  480. // Remove the following lines when you implement this test.
  481. $this->markTestIncomplete(
  482. 'This test has not been implemented yet.'
  483. );
  484. }
  485. /**
  486. * @covers UserManager::get_extra_fields
  487. * @todo Implement testGet_extra_fields().
  488. */
  489. public function testGet_extra_fields()
  490. {
  491. // Remove the following lines when you implement this test.
  492. $this->markTestIncomplete(
  493. 'This test has not been implemented yet.'
  494. );
  495. }
  496. /**
  497. * @covers UserManager::get_extra_field_options
  498. * @todo Implement testGet_extra_field_options().
  499. */
  500. public function testGet_extra_field_options()
  501. {
  502. // Remove the following lines when you implement this test.
  503. $this->markTestIncomplete(
  504. 'This test has not been implemented yet.'
  505. );
  506. }
  507. /**
  508. * @covers UserManager::get_number_of_extra_fields
  509. * @todo Implement testGet_number_of_extra_fields().
  510. */
  511. public function testGet_number_of_extra_fields()
  512. {
  513. // Remove the following lines when you implement this test.
  514. $this->markTestIncomplete(
  515. 'This test has not been implemented yet.'
  516. );
  517. }
  518. /**
  519. * @covers UserManager::create_extra_field
  520. * @todo Implement testCreate_extra_field().
  521. */
  522. public function testCreate_extra_field()
  523. {
  524. // Remove the following lines when you implement this test.
  525. $this->markTestIncomplete(
  526. 'This test has not been implemented yet.'
  527. );
  528. }
  529. /**
  530. * @covers UserManager::save_extra_field_changes
  531. * @todo Implement testSave_extra_field_changes().
  532. */
  533. public function testSave_extra_field_changes()
  534. {
  535. // Remove the following lines when you implement this test.
  536. $this->markTestIncomplete(
  537. 'This test has not been implemented yet.'
  538. );
  539. }
  540. /**
  541. * @covers UserManager::is_extra_field_available
  542. * @todo Implement testIs_extra_field_available().
  543. */
  544. public function testIs_extra_field_available()
  545. {
  546. // Remove the following lines when you implement this test.
  547. $this->markTestIncomplete(
  548. 'This test has not been implemented yet.'
  549. );
  550. }
  551. /**
  552. * @covers UserManager::get_extra_user_data
  553. * @todo Implement testGet_extra_user_data().
  554. */
  555. public function testGet_extra_user_data()
  556. {
  557. // Remove the following lines when you implement this test.
  558. $this->markTestIncomplete(
  559. 'This test has not been implemented yet.'
  560. );
  561. }
  562. /**
  563. * @covers UserManager::get_extra_user_data_by_field
  564. * @todo Implement testGet_extra_user_data_by_field().
  565. */
  566. public function testGet_extra_user_data_by_field()
  567. {
  568. // Remove the following lines when you implement this test.
  569. $this->markTestIncomplete(
  570. 'This test has not been implemented yet.'
  571. );
  572. }
  573. /**
  574. * @covers UserManager::get_extra_field_information_by_name
  575. * @todo Implement testGet_extra_field_information_by_name().
  576. */
  577. public function testGet_extra_field_information_by_name()
  578. {
  579. // Remove the following lines when you implement this test.
  580. $this->markTestIncomplete(
  581. 'This test has not been implemented yet.'
  582. );
  583. }
  584. /**
  585. * @covers UserManager::get_all_extra_field_by_type
  586. * @todo Implement testGet_all_extra_field_by_type().
  587. */
  588. public function testGet_all_extra_field_by_type()
  589. {
  590. // Remove the following lines when you implement this test.
  591. $this->markTestIncomplete(
  592. 'This test has not been implemented yet.'
  593. );
  594. }
  595. /**
  596. * @covers UserManager::get_extra_field_information
  597. * @todo Implement testGet_extra_field_information().
  598. */
  599. public function testGet_extra_field_information()
  600. {
  601. // Remove the following lines when you implement this test.
  602. $this->markTestIncomplete(
  603. 'This test has not been implemented yet.'
  604. );
  605. }
  606. /**
  607. * @covers UserManager::get_extra_user_data_by_value
  608. * @todo Implement testGet_extra_user_data_by_value().
  609. */
  610. public function testGet_extra_user_data_by_value()
  611. {
  612. // Remove the following lines when you implement this test.
  613. $this->markTestIncomplete(
  614. 'This test has not been implemented yet.'
  615. );
  616. }
  617. /**
  618. * @covers UserManager::get_extra_user_data_by_field_variable
  619. * @todo Implement testGet_extra_user_data_by_field_variable().
  620. */
  621. public function testGet_extra_user_data_by_field_variable()
  622. {
  623. // Remove the following lines when you implement this test.
  624. $this->markTestIncomplete(
  625. 'This test has not been implemented yet.'
  626. );
  627. }
  628. /**
  629. * @covers UserManager::get_sessions_by_category
  630. * @todo Implement testGet_sessions_by_category().
  631. */
  632. public function testGet_sessions_by_category()
  633. {
  634. // Remove the following lines when you implement this test.
  635. $this->markTestIncomplete(
  636. 'This test has not been implemented yet.'
  637. );
  638. }
  639. /**
  640. * @covers UserManager::get_personal_session_course_list
  641. * @todo Implement testGet_personal_session_course_list().
  642. */
  643. public function testGet_personal_session_course_list()
  644. {
  645. // Remove the following lines when you implement this test.
  646. $this->markTestIncomplete(
  647. 'This test has not been implemented yet.'
  648. );
  649. }
  650. /**
  651. * @covers UserManager::get_courses_list_by_session
  652. * @todo Implement testGet_courses_list_by_session().
  653. */
  654. public function testGet_courses_list_by_session()
  655. {
  656. // Remove the following lines when you implement this test.
  657. $this->markTestIncomplete(
  658. 'This test has not been implemented yet.'
  659. );
  660. }
  661. /**
  662. * @covers UserManager::get_user_id_from_username
  663. * @todo Implement testGet_user_id_from_username().
  664. */
  665. public function testGet_user_id_from_username()
  666. {
  667. // Remove the following lines when you implement this test.
  668. $this->markTestIncomplete(
  669. 'This test has not been implemented yet.'
  670. );
  671. }
  672. /**
  673. * @covers UserManager::get_user_upload_files_by_course
  674. * @todo Implement testGet_user_upload_files_by_course().
  675. */
  676. public function testGet_user_upload_files_by_course()
  677. {
  678. // Remove the following lines when you implement this test.
  679. $this->markTestIncomplete(
  680. 'This test has not been implemented yet.'
  681. );
  682. }
  683. /**
  684. * @covers UserManager::get_api_keys
  685. * @todo Implement testGet_api_keys().
  686. */
  687. public function testGet_api_keys()
  688. {
  689. // Remove the following lines when you implement this test.
  690. $this->markTestIncomplete(
  691. 'This test has not been implemented yet.'
  692. );
  693. }
  694. /**
  695. * @covers UserManager::add_api_key
  696. * @todo Implement testAdd_api_key().
  697. */
  698. public function testAdd_api_key()
  699. {
  700. // Remove the following lines when you implement this test.
  701. $this->markTestIncomplete(
  702. 'This test has not been implemented yet.'
  703. );
  704. }
  705. /**
  706. * @covers UserManager::delete_api_key
  707. * @todo Implement testDelete_api_key().
  708. */
  709. public function testDelete_api_key()
  710. {
  711. // Remove the following lines when you implement this test.
  712. $this->markTestIncomplete(
  713. 'This test has not been implemented yet.'
  714. );
  715. }
  716. /**
  717. * @covers UserManager::update_api_key
  718. * @todo Implement testUpdate_api_key().
  719. */
  720. public function testUpdate_api_key()
  721. {
  722. // Remove the following lines when you implement this test.
  723. $this->markTestIncomplete(
  724. 'This test has not been implemented yet.'
  725. );
  726. }
  727. /**
  728. * @covers UserManager::get_api_key_id
  729. * @todo Implement testGet_api_key_id().
  730. */
  731. public function testGet_api_key_id()
  732. {
  733. // Remove the following lines when you implement this test.
  734. $this->markTestIncomplete(
  735. 'This test has not been implemented yet.'
  736. );
  737. }
  738. /**
  739. * @covers UserManager::is_admin
  740. * @todo Implement testIs_admin().
  741. */
  742. public function testIs_admin()
  743. {
  744. // Remove the following lines when you implement this test.
  745. $this->markTestIncomplete(
  746. 'This test has not been implemented yet.'
  747. );
  748. }
  749. /**
  750. * @covers UserManager::get_number_of_users
  751. * @todo Implement testGet_number_of_users().
  752. */
  753. public function testGet_number_of_users()
  754. {
  755. // Remove the following lines when you implement this test.
  756. $this->markTestIncomplete(
  757. 'This test has not been implemented yet.'
  758. );
  759. }
  760. /**
  761. * @covers UserManager::resize_picture
  762. * @todo Implement testResize_picture().
  763. */
  764. public function testResize_picture()
  765. {
  766. // Remove the following lines when you implement this test.
  767. $this->markTestIncomplete(
  768. 'This test has not been implemented yet.'
  769. );
  770. }
  771. /**
  772. * @covers UserManager::get_picture_user
  773. * @todo Implement testGet_picture_user().
  774. */
  775. public function testGet_picture_user()
  776. {
  777. // Remove the following lines when you implement this test.
  778. $this->markTestIncomplete(
  779. 'This test has not been implemented yet.'
  780. );
  781. }
  782. /**
  783. * @covers UserManager::send_message_in_outbox
  784. * @todo Implement testSend_message_in_outbox().
  785. */
  786. public function testSend_message_in_outbox()
  787. {
  788. // Remove the following lines when you implement this test.
  789. $this->markTestIncomplete(
  790. 'This test has not been implemented yet.'
  791. );
  792. }
  793. /**
  794. * @covers UserManager::get_tags
  795. * @todo Implement testGet_tags().
  796. */
  797. public function testGet_tags()
  798. {
  799. // Remove the following lines when you implement this test.
  800. $this->markTestIncomplete(
  801. 'This test has not been implemented yet.'
  802. );
  803. }
  804. /**
  805. * @covers UserManager::get_top_tags
  806. * @todo Implement testGet_top_tags().
  807. */
  808. public function testGet_top_tags()
  809. {
  810. // Remove the following lines when you implement this test.
  811. $this->markTestIncomplete(
  812. 'This test has not been implemented yet.'
  813. );
  814. }
  815. /**
  816. * @covers UserManager::get_user_tags
  817. * @todo Implement testGet_user_tags().
  818. */
  819. public function testGet_user_tags()
  820. {
  821. // Remove the following lines when you implement this test.
  822. $this->markTestIncomplete(
  823. 'This test has not been implemented yet.'
  824. );
  825. }
  826. /**
  827. * @covers UserManager::get_user_tags_to_string
  828. * @todo Implement testGet_user_tags_to_string().
  829. */
  830. public function testGet_user_tags_to_string()
  831. {
  832. // Remove the following lines when you implement this test.
  833. $this->markTestIncomplete(
  834. 'This test has not been implemented yet.'
  835. );
  836. }
  837. /**
  838. * @covers UserManager::get_tag_id
  839. * @todo Implement testGet_tag_id().
  840. */
  841. public function testGet_tag_id()
  842. {
  843. // Remove the following lines when you implement this test.
  844. $this->markTestIncomplete(
  845. 'This test has not been implemented yet.'
  846. );
  847. }
  848. /**
  849. * @covers UserManager::get_tag_id_from_id
  850. * @todo Implement testGet_tag_id_from_id().
  851. */
  852. public function testGet_tag_id_from_id()
  853. {
  854. // Remove the following lines when you implement this test.
  855. $this->markTestIncomplete(
  856. 'This test has not been implemented yet.'
  857. );
  858. }
  859. /**
  860. * @covers UserManager::add_tag
  861. * @todo Implement testAdd_tag().
  862. */
  863. public function testAdd_tag()
  864. {
  865. // Remove the following lines when you implement this test.
  866. $this->markTestIncomplete(
  867. 'This test has not been implemented yet.'
  868. );
  869. }
  870. /**
  871. * @covers UserManager::delete_user_tags
  872. * @todo Implement testDelete_user_tags().
  873. */
  874. public function testDelete_user_tags()
  875. {
  876. // Remove the following lines when you implement this test.
  877. $this->markTestIncomplete(
  878. 'This test has not been implemented yet.'
  879. );
  880. }
  881. /**
  882. * @covers UserManager::process_tags
  883. * @todo Implement testProcess_tags().
  884. */
  885. public function testProcess_tags()
  886. {
  887. // Remove the following lines when you implement this test.
  888. $this->markTestIncomplete(
  889. 'This test has not been implemented yet.'
  890. );
  891. }
  892. /**
  893. * @covers UserManager::get_all_administrators
  894. * @todo Implement testGet_all_administrators().
  895. */
  896. public function testGet_all_administrators()
  897. {
  898. // Remove the following lines when you implement this test.
  899. $this->markTestIncomplete(
  900. 'This test has not been implemented yet.'
  901. );
  902. }
  903. /**
  904. * @covers UserManager::get_all_user_tags
  905. * @todo Implement testGet_all_user_tags().
  906. */
  907. public function testGet_all_user_tags()
  908. {
  909. // Remove the following lines when you implement this test.
  910. $this->markTestIncomplete(
  911. 'This test has not been implemented yet.'
  912. );
  913. }
  914. /**
  915. * @covers UserManager::get_search_form
  916. * @todo Implement testGet_search_form().
  917. */
  918. public function testGet_search_form()
  919. {
  920. // Remove the following lines when you implement this test.
  921. $this->markTestIncomplete(
  922. 'This test has not been implemented yet.'
  923. );
  924. }
  925. /**
  926. * @covers UserManager::show_menu
  927. * @todo Implement testShow_menu().
  928. */
  929. public function testShow_menu()
  930. {
  931. // Remove the following lines when you implement this test.
  932. $this->markTestIncomplete(
  933. 'This test has not been implemented yet.'
  934. );
  935. }
  936. /**
  937. * @covers UserManager::get_special_course_list
  938. * @todo Implement testGet_special_course_list().
  939. */
  940. public function testGet_special_course_list()
  941. {
  942. // Remove the following lines when you implement this test.
  943. $this->markTestIncomplete(
  944. 'This test has not been implemented yet.'
  945. );
  946. }
  947. /**
  948. * @covers UserManager::relate_users
  949. * @todo Implement testRelate_users().
  950. */
  951. public function testRelate_users()
  952. {
  953. // Remove the following lines when you implement this test.
  954. $this->markTestIncomplete(
  955. 'This test has not been implemented yet.'
  956. );
  957. }
  958. /**
  959. * @covers UserManager::remove_user_rel_user
  960. * @todo Implement testRemove_user_rel_user().
  961. */
  962. public function testRemove_user_rel_user()
  963. {
  964. // Remove the following lines when you implement this test.
  965. $this->markTestIncomplete(
  966. 'This test has not been implemented yet.'
  967. );
  968. }
  969. /**
  970. * @covers UserManager::get_users_followed_by_drh
  971. * @todo Implement testGet_users_followed_by_drh().
  972. */
  973. public function testGet_users_followed_by_drh()
  974. {
  975. // Remove the following lines when you implement this test.
  976. $this->markTestIncomplete(
  977. 'This test has not been implemented yet.'
  978. );
  979. }
  980. /**
  981. * @covers UserManager::suscribe_users_to_hr_manager
  982. * @todo Implement testSuscribe_users_to_hr_manager().
  983. */
  984. public function testSuscribe_users_to_hr_manager()
  985. {
  986. // Remove the following lines when you implement this test.
  987. $this->markTestIncomplete(
  988. 'This test has not been implemented yet.'
  989. );
  990. }
  991. /**
  992. * @covers UserManager::is_user_followed_by_drh
  993. * @todo Implement testIs_user_followed_by_drh().
  994. */
  995. public function testIs_user_followed_by_drh()
  996. {
  997. // Remove the following lines when you implement this test.
  998. $this->markTestIncomplete(
  999. 'This test has not been implemented yet.'
  1000. );
  1001. }
  1002. /**
  1003. * @covers UserManager::get_user_id_of_course_admin_or_session_admin
  1004. * @todo Implement testGet_user_id_of_course_admin_or_session_admin().
  1005. */
  1006. /*
  1007. public function testGet_user_id_of_course_admin_or_session_admin()
  1008. {
  1009. // Remove the following lines when you implement this test.
  1010. $this->markTestIncomplete(
  1011. 'This test has not been implemented yet.'
  1012. );
  1013. }
  1014. */
  1015. /**
  1016. * @covers UserManager::is_user_certified
  1017. * @todo Implement testIs_user_certified().
  1018. */
  1019. public function testIs_user_certified()
  1020. {
  1021. // Remove the following lines when you implement this test.
  1022. $this->markTestIncomplete(
  1023. 'This test has not been implemented yet.'
  1024. );
  1025. }
  1026. /**
  1027. * @covers UserManager::get_info_gradebook_certificate
  1028. * @todo Implement testGet_info_gradebook_certificate().
  1029. */
  1030. public function testGet_info_gradebook_certificate()
  1031. {
  1032. // Remove the following lines when you implement this test.
  1033. $this->markTestIncomplete(
  1034. 'This test has not been implemented yet.'
  1035. );
  1036. }
  1037. /**
  1038. * @covers UserManager::get_user_path_certificate
  1039. * @todo Implement testGet_user_path_certificate().
  1040. */
  1041. public function testGet_user_path_certificate()
  1042. {
  1043. // Remove the following lines when you implement this test.
  1044. $this->markTestIncomplete(
  1045. 'This test has not been implemented yet.'
  1046. );
  1047. }
  1048. /**
  1049. * @covers UserManager::is_session_course_coach
  1050. * @todo Implement testIs_session_course_coach().
  1051. */
  1052. public function testIs_session_course_coach()
  1053. {
  1054. // Remove the following lines when you implement this test.
  1055. $this->markTestIncomplete(
  1056. 'This test has not been implemented yet.'
  1057. );
  1058. }
  1059. /**
  1060. * @covers UserManager::get_favicon_from_url
  1061. * @todo Implement testGet_favicon_from_url().
  1062. */
  1063. public function testGet_favicon_from_url()
  1064. {
  1065. // Remove the following lines when you implement this test.
  1066. $this->markTestIncomplete(
  1067. 'This test has not been implemented yet.'
  1068. );
  1069. }
  1070. /**
  1071. * @covers UserManager::delete_inactive_student
  1072. * @todo Implement testDelete_inactive_student().
  1073. */
  1074. public function testDelete_inactive_student()
  1075. {
  1076. // Remove the following lines when you implement this test.
  1077. $this->markTestIncomplete(
  1078. 'This test has not been implemented yet.'
  1079. );
  1080. }
  1081. /**
  1082. * @covers UserManager::set_extra_fields_in_form
  1083. * @todo Implement testSet_extra_fields_in_form().
  1084. */
  1085. public function testSet_extra_fields_in_form()
  1086. {
  1087. // Remove the following lines when you implement this test.
  1088. $this->markTestIncomplete(
  1089. 'This test has not been implemented yet.'
  1090. );
  1091. }
  1092. /**
  1093. * @covers UserManager::get_user_field_types
  1094. * @todo Implement testGet_user_field_types().
  1095. */
  1096. public function testGet_user_field_types()
  1097. {
  1098. // Remove the following lines when you implement this test.
  1099. $this->markTestIncomplete(
  1100. 'This test has not been implemented yet.'
  1101. );
  1102. }
  1103. /**
  1104. * @covers UserManager::add_user_as_admin
  1105. * @todo Implement testAdd_user_as_admin().
  1106. */
  1107. public function testAdd_user_as_admin()
  1108. {
  1109. // Remove the following lines when you implement this test.
  1110. $this->markTestIncomplete(
  1111. 'This test has not been implemented yet.'
  1112. );
  1113. }
  1114. /**
  1115. * @covers UserManager::remove_user_admin
  1116. * @todo Implement testRemove_user_admin().
  1117. */
  1118. public function testRemove_user_admin()
  1119. {
  1120. // Remove the following lines when you implement this test.
  1121. $this->markTestIncomplete(
  1122. 'This test has not been implemented yet.'
  1123. );
  1124. }
  1125. /**
  1126. * @covers UserManager::update_all_user_languages
  1127. * @todo Implement testUpdate_all_user_languages().
  1128. */
  1129. public function testUpdate_all_user_languages()
  1130. {
  1131. // Remove the following lines when you implement this test.
  1132. $this->markTestIncomplete(
  1133. 'This test has not been implemented yet.'
  1134. );
  1135. }
  1136. }