/** * 刷新当前表所有缓存 */ public function testFlushCache() { $this->meta->shouldReceive('flushAll')->with('angejia', 'user'); User::flush(); }