public function setUp()
{
$this->mongo = new mockMongo();
$collection = $this->mockCollection();
$collection->method('findOne')->will($this->returnValue(['name' => 'key', 'value' => true]));
$collection->method('update')->will($this->returnValue(null));
$this->mongo->setCollection($collection);
}