OtherArticlesFixture.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 string $table = 'other_articles';
  26. public function create(ConnectionInterface $connection): bool
  27. {
  28. return true;
  29. }
  30. public function drop(ConnectionInterface $connection): bool
  31. {
  32. return true;
  33. }
  34. public function insert(ConnectionInterface $connection): bool
  35. {
  36. return true;
  37. }
  38. public function createConstraints(ConnectionInterface $connection): bool
  39. {
  40. return true;
  41. }
  42. public function dropConstraints(ConnectionInterface $connection): bool
  43. {
  44. return true;
  45. }
  46. public function truncate(ConnectionInterface $connection): bool
  47. {
  48. return true;
  49. }
  50. public function connection(): string
  51. {
  52. return 'other';
  53. }
  54. public function sourceName(): string
  55. {
  56. return 'other_articles';
  57. }
  58. }