ORMTest.php 639 B

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