aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Updater/UpdaterTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-11-11 14:01:21 +0100
committerArthurHoaro <arthur@hoa.ro>2018-07-05 20:31:35 +0200
commite85b7a05a177f803ae36ba5c12835313f31177bc (patch)
tree99216fbcb3343b74eac2589d14bf75c0a6d5fb01 /tests/Updater/UpdaterTest.php
parenta3724717ec37d4bd54dc117ef439c8a182157882 (diff)
downloadShaarli-e85b7a05a177f803ae36ba5c12835313f31177bc.tar.gz
Shaarli-e85b7a05a177f803ae36ba5c12835313f31177bc.tar.zst
Shaarli-e85b7a05a177f803ae36ba5c12835313f31177bc.zip
Update thumbnail integration after rebasing the branch
Diffstat (limited to 'tests/Updater/UpdaterTest.php')
-rw-r--r--tests/Updater/UpdaterTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php
index 94e3c7d3..8b90fd5e 100644
--- a/tests/Updater/UpdaterTest.php
+++ b/tests/Updater/UpdaterTest.php
@@ -684,4 +684,19 @@ $GLOBALS[\'privateLinkByDefault\'] = true;';
684 $this->assertEquals(4194304, $this->conf->get('general.download_max_size')); 684 $this->assertEquals(4194304, $this->conf->get('general.download_max_size'));
685 $this->assertEquals(3, $this->conf->get('general.download_timeout')); 685 $this->assertEquals(3, $this->conf->get('general.download_timeout'));
686 } 686 }
687
688 /**
689 * Test updateMethodAtomDefault with show_atom set to true.
690 * => nothing to do
691 */
692 public function testUpdateMethodWebThumbnailerEnabled()
693 {
694 $this->conf->set('thumbnail.enable_thumbnails', true);
695 $updater = new Updater([], [], $this->conf, true);
696 $this->assertTrue($updater->updateMethodWebThumbnailer());
697 $this->assertFalse($this->conf->exists('thumbnail'));
698 $this->assertTrue($this->conf->get('thumbnails.enabled'));
699 $this->assertEquals(125, $this->conf->get('thumbnails.width'));
700 $this->assertEquals(90, $this->conf->get('thumbnails.height'));
701 }
687} 702}