ORMTest.php 673 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Test case for KO7_ORM
  4. *
  5. * @package KO7/ORM
  6. * @group ko7
  7. * @group ko7.orm
  8. * @category Test
  9. * @author Craig Duncan <git@duncanc.co.uk>
  10. * @copyright (c) 2007-2016 Kohana Team
  11. * @copyright (c) since 2016 Koseven Team
  12. * @license https://koseven.dev/LICENSE
  13. */
  14. class KO7_ORMTest extends Unittest_TestCase
  15. {
  16. /**
  17. * Ensure has() doesn't attempt to count non-countables.
  18. *
  19. * @test
  20. * @covers ORM::has
  21. */
  22. public function test_has()
  23. {
  24. $orm = new ORM_Example;
  25. $result = $orm->has('children', FALSE);
  26. $this->assertSame(FALSE, $result);
  27. }
  28. }
  29. class ORM_Example extends KO7_ORM
  30. {
  31. public function __construct()
  32. {
  33. }
  34. }