[Pkg-owncloud-commits] [owncloud] 177/457: change tests back to check for logo-wide, make them pass again
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:05:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 9194603c3198c1b62e52f40f00b2d773cfa0ed5a
Author: Jan-Christoph Borchardt <hey at jancborchardt.net>
Date: Thu May 28 23:39:55 2015 +0200
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 5066791..690b437 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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list