public function testOneCachedSimpleGet()
{
$this->cache->shouldReceive('get')->with(['3558193cd9818af7fe4d2c2f5bd9d00f'])->andReturn(['3558193cd9818af7fe4d2c2f5bd9d00f' => (object) ['id' => 1, 'name' => '海涛']]);
$dispatcher = M::Mock(Dispatcher::class);
$dispatcher->shouldReceive('fire')->with('angejia.pea.get', ['table' => 'user', 'db' => 'angejia']);
$dispatcher->shouldReceive('fire')->with('angejia.pea.hit.simple.1000', ['table' => 'user', 'db' => 'angejia']);
$this->app->instance(Dispatcher::class, $dispatcher);
// 查询 id 为 1 的记录,应该命中缓存
$u1 = User::find(1);
$this->assertEquals('海涛', $u1->name);
}