Skip to content

Commit

Permalink
clean up tags
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Apr 27, 2017
1 parent 5f345a3 commit cb085bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-responsecache` will be documented in this file

## 3.1.0 - 2017-04-28

- add support for taggable cache

## 3.0.1 - 2017-03-16

- fixed php version dependency in `composer.json`
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/FlushCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public function it_will_flush_all_when_tags_are_not_defined()
$this->assertNull($appCache->get('appData'));
}

protected function createTaggableResponseCacheStore($tags)
protected function createTaggableResponseCacheStore($tag): Repository
{
$this->app['config']->set('responsecache.cache_store', 'array');
$this->app['config']->set('responsecache.cache_tag', $tags);
$this->app['config']->set('responsecache.cache_tag', $tag);

// Simulating construction of Repository inside of the service provider
return $this->app->contextual[ResponseCacheRepository::class][$this->app->getAlias(Repository::class)]();
Expand Down

0 comments on commit cb085bc

Please sign in to comment.