Skip to content

Commit 27721c3

Browse files
committed
Fixed broken tests, moved repo to new account
Signed-off-by: Ramesh Mhetre <mhetreramesh@gmail.com>
1 parent fe3a153 commit 27721c3

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Author](http://img.shields.io/badge/author-@mhetreramesh-blue.svg?style=flat-square)](https://twitter.com/mhetreramesh)
44
[![Latest Version on Packagist](https://img.shields.io/packagist/v/mhetreramesh/flysystem-backblaze.svg?style=flat-square)](https://packagist.org/packages/mhetreramesh/flysystem-backblaze)
55
[![Software License][ico-license]](LICENSE.md)
6-
[![Build Status](https://img.shields.io/travis/mhetreramesh/flysystem-backblaze/master.svg?style=flat-square)](https://travis-ci.org/mhetreramesh/flysystem-backblaze)
6+
[![Build Status](https://img.shields.io/travis/gliterd/flysystem-backblaze/master.svg?style=flat-square)](https://travis-ci.org/gliterd/flysystem-backblaze)
77
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
88
[![Quality Score][ico-code-quality]][link-code-quality]
99
[![Total Downloads](https://img.shields.io/packagist/dt/mhetreramesh/flysystem-backblaze.svg?style=flat-square)](https://packagist.org/packages/mhetreramesh/flysystem-backblaze)
@@ -62,15 +62,15 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
6262

6363
[ico-version]: https://img.shields.io/packagist/v/mhetreramesh/flysystem-backblaze.svg?style=flat-square
6464
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
65-
[ico-travis]: https://img.shields.io/travis/mhetreramesh/flysystem-backblaze/master.svg?style=flat-square
66-
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/mhetreramesh/flysystem-backblaze.svg?style=flat-square
67-
[ico-code-quality]: https://img.shields.io/scrutinizer/g/mhetreramesh/flysystem-backblaze.svg?style=flat-square
65+
[ico-travis]: https://img.shields.io/travis/gliterd/flysystem-backblaze/master.svg?style=flat-square
66+
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/gliterd/flysystem-backblaze.svg?style=flat-square
67+
[ico-code-quality]: https://img.shields.io/scrutinizer/g/gliterd/flysystem-backblaze.svg?style=flat-square
6868
[ico-downloads]: https://img.shields.io/packagist/dt/mhetreramesh/flysystem-backblaze.svg?style=flat-square
6969

7070
[link-packagist]: https://packagist.org/packages/mhetreramesh/flysystem-backblaze
71-
[link-travis]: https://travis-ci.org/mhetreramesh/flysystem-backblaze
72-
[link-scrutinizer]: https://scrutinizer-ci.com/g/mhetreramesh/flysystem-backblaze/code-structure
73-
[link-code-quality]: https://scrutinizer-ci.com/g/mhetreramesh/flysystem-backblaze
71+
[link-travis]: https://travis-ci.org/gliterd/flysystem-backblaze
72+
[link-scrutinizer]: https://scrutinizer-ci.com/g/gliterd/flysystem-backblaze/code-structure
73+
[link-code-quality]: https://scrutinizer-ci.com/g/gliterd/flysystem-backblaze
7474
[link-downloads]: https://packagist.org/packages/mhetreramesh/flysystem-backblaze
7575
[link-author]: https://github.com/mhetreramesh
7676
[link-contributors]: ../../contributors

tests/BackblazeAdapterTests.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ public function testUpdateStream($adapter, $mock)
9494
*/
9595
public function testRead($adapter, $mock)
9696
{
97-
$mock->fileExists(["BucketName" => "my_bucket", "FileName" => "something", "FileId" => "something"])->willReturn(true);
97+
$file = new File('something','something4','','','','','my_bucket');
98+
$mock->getFile(["BucketName" => "my_bucket", "FileName" => "something"])->willReturn($file, false);
99+
$mock->download(["FileId" => "something"])->willReturn($file, false);
98100
$result = $adapter->read('something');
99-
$this->assertFalse($result);
101+
$this->assertEquals(['contents' => $file], $result);
100102
}
101103

102104
/**

0 commit comments

Comments
 (0)