123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Test case for KO7_ORM
- *
- * @package KO7/ORM
- * @group ko7
- * @group ko7.orm
- * @category Test
- * @author Craig Duncan <git@duncanc.co.uk>
- * @copyright (c) 2007-2016 Kohana Team
- * @copyright (c) since 2016 Koseven Team
- * @license https://koseven.dev/LICENSE
- */
- class KO7_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 KO7_ORM
- {
- public function __construct()
- {
- }
- }
|