MetastringsTest.php 639 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Elgg\Database;
  3. class MetastringsTest extends \PHPUnit_Framework_TestCase {
  4. /**
  5. * Check that in both case sensitive and case insensitive you are always getting an ID
  6. */
  7. public function testMetastringIsAlwaysAddedWhenGettingItsID() {
  8. // test case sensitive (should return id)
  9. //$this->assertNotEmpty(elgg_get_metastring_id(time() . "_a", true));
  10. //test case insensitive (should return array with ids)
  11. //$this->assertNotEmpty(elgg_get_metastring_id(time() . "_b", false));
  12. // marked as incomplete as there is no way to clean up the just created metastring ids
  13. $this->markTestIncomplete();
  14. }
  15. }