1
0

TXTTest.php 664 B

12345678910111213141516171819202122232425262728
  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 TXTTest
  10. *
  11. * @group DB
  12. *
  13. * @package Test\Preview
  14. */
  15. class TXTTest extends Provider {
  16. protected function setUp(): void {
  17. parent::setUp();
  18. $fileName = 'lorem-big.txt';
  19. $this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
  20. // Arbitrary width and length which won't be used to calculate the ratio
  21. $this->width = 500;
  22. $this->height = 200;
  23. $this->provider = new \OC\Preview\TXT;
  24. }
  25. }