ModelTest.php 648 B

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