1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * Test case for Kohana_ORM
- *
- * @package Kohana/ORM
- * @group kohana
- * @group kohana.orm
- * @category Test
- * @author Craig Duncan <git@duncanc.co.uk>
- * @copyright (c) Kohana Team
- * @license https://koseven.ga/LICENSE.md
- */
- class Kohana_ORMTest extends Unittest_TestCase
- {
- /**
- * Ensure has() doesn't attempt to count non-countables.
- *
- * @test
- * @covers ORM::has
- */
- public function test_has()
- {
- $orm = new ORM_Example;
- $result = $orm->has('children', FALSE);
- $this->assertSame(FALSE, $result);
- }
- }
- class ORM_Example extends Kohana_ORM
- {
- public function __construct()
- {
- }
- }
|