UserManagerTest.lib.php 36 KB

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