From 9194603c3198c1b62e52f40f00b2d773cfa0ed5a Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 28 May 2015 23:39:55 +0200 Subject: [PATCH] change tests back to check for logo-wide, make them pass again --- tests/lib/archive.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib/archive.php b/tests/lib/archive.php index 506679154f..690b4378b8 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); }