Stiphle\Storage\RedisTest::testStorageCanBeUnlocked PHP Метод

testStorageCanBeUnlocked() публичный Метод

    public function testStorageCanBeUnlocked()
    {
        $redisClient = $this->getMockBuilder(\Predis\Client::class)->setMethods(['del'])->getMock();
        $redisClient->expects($this->once())->method('del')->with('dave::LOCK');
        $storage = new Redis($redisClient);
        $storage->unlock('dave');
    }