ImageTest.php 598 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace Test\Preview;
  8. /**
  9. * Class ImageTest
  10. *
  11. * @group DB
  12. *
  13. * @package Test\Preview
  14. */
  15. class ImageTest extends Provider {
  16. protected function setUp(): void {
  17. parent::setUp();
  18. $fileName = 'testimage.jpg';
  19. $this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
  20. $this->width = 1680;
  21. $this->height = 1050;
  22. $this->provider = new \OC\Preview\JPEG();
  23. }
  24. }