UserManagerTest.lib.php 35 KB

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