Skip to content

Commit

Permalink
Fix breakages
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljennings committed Aug 6, 2018
1 parent 1f9721a commit ca04c96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require-dev": {
"phpunit/phpunit": ">=4.0",
"orchestra/testbench": "^3.0",
"mockery/mockery": "^1.1",
"mockery/mockery": "^1.0",
"php-coveralls/php-coveralls": "^2.1"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Broker
# Broker [![Build Status](https://travis-ci.org/michaeljennings/broker.svg?branch=master)](https://travis-ci.org/michaeljennings/broker) [![Coverage Status](https://coveralls.io/repos/github/michaeljennings/broker/badge.svg?branch=master)](https://coveralls.io/github/michaeljennings/broker?branch=master)

A laravel package that allows you to cache items against an object. For example you may want to cache a user's navigation items against the user model.

Expand Down
6 changes: 3 additions & 3 deletions tests/BrokerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function it_stores_an_item_in_the_cache()

$this->makeBroker()->put($cacheable, 'foo', 'bar', 60);

$this->assertEquals($this->app->make('cache')->tags($cacheable->getCacheKey(), $cacheable->id)->get('foo'), 'bar');
$this->assertEquals($this->app->make('cache')->tags([$cacheable->getCacheKey(), $cacheable->id])->get('foo'), 'bar');
}

/**
Expand All @@ -27,7 +27,7 @@ public function it_stores_an_item_in_the_cache_forever()

$this->makeBroker()->forever($cacheable, 'foo', 'bar');

$this->assertEquals($this->app->make('cache')->tags($cacheable->getCacheKey(), $cacheable->id)->get('foo'), 'bar');
$this->assertEquals($this->app->make('cache')->tags([$cacheable->getCacheKey(), $cacheable->id])->get('foo'), 'bar');
}

/**
Expand All @@ -41,7 +41,7 @@ public function it_stores_an_item_in_the_cache_using_a_callback()
return 'bar';
});

$this->assertEquals($this->app->make('cache')->tags($cacheable->getCacheKey(), $cacheable->id)->get('foo'), 'bar');
$this->assertEquals($this->app->make('cache')->tags([$cacheable->getCacheKey(), $cacheable->id])->get('foo'), 'bar');
}

/**
Expand Down

0 comments on commit ca04c96

Please sign in to comment.