public function testShouldBeObjectWithChangedDecoder() { $object = new stdClass(); $this->store->add('serialize', $object); $this->assertInstanceOf('stdClass', $this->store->get('serialize')); $this->store->forget('serialize'); }
public function testCacheableComponentInstance() { /** @var Illuminate\Cache\Repository $cache */ $cache = $this->app['cache']->driver('couchbase'); $this->assertInstanceOf(get_class($this->store), $cache->getStore()); $cache->add('test', 'testing', 400); $this->assertSame('testing', $this->store->get('test')); $this->store->forget('test'); }