OtherArticlesFixture.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  11. * @link https://cakephp.org CakePHP(tm) Project
  12. * @since 1.2.0
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. */
  15. namespace Cake\Test\Fixture;
  16. use Cake\Datasource\ConnectionInterface;
  17. use Cake\Datasource\FixtureInterface;
  18. /**
  19. * A fixture attached to the non-default connection
  20. * that implements the interface with none of the safe-guards
  21. * from TestFixture.
  22. */
  23. class OtherArticlesFixture implements FixtureInterface
  24. {
  25. public $table = 'other_articles';
  26. public function create(ConnectionInterface $db)
  27. {
  28. }
  29. public function drop(ConnectionInterface $db)
  30. {
  31. }
  32. public function insert(ConnectionInterface $db)
  33. {
  34. }
  35. public function createConstraints(ConnectionInterface $db)
  36. {
  37. }
  38. public function dropConstraints(ConnectionInterface $db)
  39. {
  40. }
  41. public function truncate(ConnectionInterface $db)
  42. {
  43. }
  44. public function connection()
  45. {
  46. return 'other';
  47. }
  48. public function sourceName()
  49. {
  50. return 'other_articles';
  51. }
  52. }