ModelTest.php 635 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * This test only really exists for code coverage.
  4. *
  5. * @group kohana
  6. * @group kohana.core
  7. * @group kohana.core.model
  8. *
  9. * @package Kohana
  10. * @category Tests
  11. * @author Kohana Team
  12. * @author BRMatt <matthew@sigswitch.com>
  13. * @copyright (c) Kohana Team
  14. * @license https://koseven.ga/LICENSE.md
  15. */
  16. class Kohana_ModelTest extends Unittest_TestCase
  17. {
  18. /**
  19. * Test the model's factory.
  20. *
  21. * @test
  22. * @covers Model::factory
  23. */
  24. public function test_create()
  25. {
  26. $foobar = Model::factory('Foobar');
  27. $this->assertEquals(TRUE, $foobar instanceof Model);
  28. }
  29. }
  30. class Model_Foobar extends Model
  31. {
  32. }