TokenResourceFake.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Test\Connection\Db;
  6. use Magento\Integration\Model\ResourceModel\Oauth\Token;
  7. /**
  8. * Token Resource Model Fake for Tests
  9. *
  10. * @package Temando\Shipping\Test\Integration
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link http://www.temando.com/
  14. */
  15. final class TokenResourceFake extends Token
  16. {
  17. /**
  18. * Load an object
  19. *
  20. * @param \Magento\Framework\Model\AbstractModel $object
  21. * @param mixed $value
  22. * @param string $field field to load by (defaults to model id)
  23. * @return $this
  24. */
  25. public function load(\Magento\Framework\Model\AbstractModel $object, $value, $field = null)
  26. {
  27. return $this;
  28. }
  29. /**
  30. * Save object object data
  31. *
  32. * @param \Magento\Framework\Model\AbstractModel $object
  33. * @return $this
  34. */
  35. public function save(\Magento\Framework\Model\AbstractModel $object)
  36. {
  37. return $this;
  38. }
  39. /**
  40. * Delete the object
  41. *
  42. * @param \Magento\Framework\Model\AbstractModel $object
  43. * @return $this
  44. */
  45. public function delete(\Magento\Framework\Model\AbstractModel $object)
  46. {
  47. return $this;
  48. }
  49. }