Plugins.php 685 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Elgg\Database;
  3. class PluginsTest extends \PHPUnit_Framework_TestCase {
  4. /**
  5. * Check that plugins service is able to handle plugin user settings
  6. */
  7. public function testSetGetAndUnsetUserSetting() {
  8. // TODO Use these once the class becomes testable:
  9. /*
  10. $plugins = new \Elgg\Database\Plugins();
  11. $user_guid = 123;
  12. $plugins->setUserSetting('foo', 'bar', $user_guid, 'plugin_id');
  13. $this->assertSame('bar', $plugins->getUserSetting('foo', $user_guid, 'plugin_id'));
  14. $plugins->unsetUserSetting('foo', $user_guid, 'plugin_id');
  15. $this->assertSame(null, $plugins->getUserSetting('foo', $user_guid, 'plugin_id'));
  16. */
  17. $this->markTestIncomplete();
  18. }
  19. }