Fry the chopped onions in the oil, add the green beans and crushed garlic and fry briefly, then add the chopped tomatoes and kidney beans and let everything stew for about 8 minutes. Season and finally add the chopped basil and cream, season to taste.