aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-05-28 23:39:55 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-05-28 23:39:55 +0200
commit9194603c3198c1b62e52f40f00b2d773cfa0ed5a (patch)
tree8626b95f4c0cfc33a57e279cb6856df693134388
parent2fccfbe2789cbf41beba8f080a6721feaf7d50d2 (diff)
downloadnextcloud-server-9194603c3198c1b62e52f40f00b2d773cfa0ed5a.tar.gz
nextcloud-server-9194603c3198c1b62e52f40f00b2d773cfa0ed5a.zip
change tests back to check for logo-wide, make them pass again
-rw-r--r--tests/lib/archive.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/archive.php b/tests/lib/archive.php
index 506679154f6..690b4378b88 100644
--- a/tests/lib/archive.php
+++ b/tests/lib/archive.php
@@ -26,7 +26,7 @@ abstract class Test_Archive extends \Test\TestCase {
public function testGetFiles() {
$this->instance=$this->getExisting();
$allFiles=$this->instance->getFiles();
- $expected=array('lorem.txt','desktopapp.png','dir/', 'dir/lorem.txt');
+ $expected=array('lorem.txt','logo-wide.png','dir/', 'dir/lorem.txt');
$this->assertEquals(4, count($allFiles), 'only found '.count($allFiles).' out of 4 expected files');
foreach($expected as $file) {
$this->assertContains($file, $allFiles, 'cant find '. $file . ' in archive');
@@ -35,7 +35,7 @@ abstract class Test_Archive extends \Test\TestCase {
$this->assertFalse($this->instance->fileExists('non/existing/file'));
$rootContent=$this->instance->getFolder('');
- $expected=array('lorem.txt','desktopapp.png', 'dir/');
+ $expected=array('lorem.txt','logo-wide.png', 'dir/');
$this->assertEquals(3, count($rootContent));
foreach($expected as $file) {
$this->assertContains($file, $rootContent, 'cant find '. $file . ' in archive');
@@ -113,7 +113,7 @@ abstract class Test_Archive extends \Test\TestCase {
$this->instance->extract($tmpDir);
$this->assertEquals(true, file_exists($tmpDir.'lorem.txt'));
$this->assertEquals(true, file_exists($tmpDir.'dir/lorem.txt'));
- $this->assertEquals(true, file_exists($tmpDir.'desktopapp.png'));
+ $this->assertEquals(true, file_exists($tmpDir.'logo-wide.png'));
$this->assertEquals(file_get_contents($dir.'/lorem.txt'), file_get_contents($tmpDir.'lorem.txt'));
OCP\Files::rmdirr($tmpDir);
}